bnfd
08/24/2021, 6:42 PMJason Bosco
08/24/2021, 7:04 PMsnippet_threshold
which might be helpful.
There's also highlight_full_fields
to get the full field and then you could snippet on the client-sideJason Bosco
08/24/2021, 7:04 PMbnfd
08/24/2021, 7:06 PMbnfd
08/24/2021, 7:23 PMJason Bosco
08/24/2021, 7:27 PMwouldn't the highlights helper just show the whole document with all highlights applied?That's correct.
long document (let's say 20 pages) there are 10 occurrences of "foo" so I'd like to show 10 snippets for document1 instead of the whole document. Is this possible?I guess I misunderstood your original ask. This is not possible at the moment. But for long documents, to keep search relevancy and speed good, I'd recommend breaking them up into say one paragraph per record. That will also solve what you're looking to do indirectly, because then you can show 10 different snippets, 1 snippet from each document (paragraph)
Jason Bosco
08/24/2021, 7:29 PMbnfd
08/24/2021, 7:34 PM