<@U01PL2YSG8L> I saw the issue regarding exhaustiv...
# community-help
b
@Kishore Nallan I saw the issue regarding exhaustive highlighting and wanted to ask if there was any update regarding multiple matches snippeting: https://typesense-community.slack.com/archives/C01P749MET0/p1629833031204400?thread_ts=1629830554.200800&amp;cid=C01P749MET0
k
Have you tried 0.22.0.rcs21 build?
Oh wait this is about highlighting all instances of a match within a document.
👍 1
We made a bunch of highlight improvements in 0.22.. I have to verify if multiple highlights are now possible for the full field.
b
I haven't tried the rcs21 build
k
@bnfd I just checked. If you list the fields in
highlight_full_fields
then those fields are highlighted fully now on the latest builds.
Please try it out on
0.22.0.rcs21
and let me know!
b
Ah this is without snippeting, right?
k
Yes, snippet is meant for highlighting the best matched portion.
You want multiple snippets from various parts of the document?
b
Yes
k
That is not possible because Typesense scores documents on the best matched portion.
I mean, if we were to do it, it must be done in a post processing step before display.
Atleast now, it is possible to do this on the client side because words will be marked with <mark> tags.
b
Ah, I get the relevance aspect but sometimes I want to return all lines containing "foo" from each doc
k
You can do it on the client side easily now. Split paragraphs into sentences, and in each sentence check for number of <mark> tags and rank sentences on number of occurrences and show top N.
👍 1
b
I was concerned that doing it on the frontend might result in a nontrivial overhead (in the case of a collection with many long documents) and having it offered by the engine would be beneficial. But maybe this is a rare use case.
Thanks for digging whether it's possible!
k
Certainly we can add an option for doing it, but just cautious about introducing too many new flags 🙂
b
Yeah, makes sense