Solr highlighting of multiple terms
Asked Answered
A

2

6

I have configured Solr so that the terms I'm searching are highlighted, but if those terms are far between them, I will only see the first one in the highlighting snippet.

What I want is to have something similar to Google's: separating snippets with an "ellipse" (...) so I can see the multiple terms in their context at once.

Is it possible?

Amati answered 25/10, 2010 at 13:8 Comment(0)
I
8

You're looking for the hl.snippets parameter. It defaults to 1, and determines how many (maximum) snippets each highlighted field returns in each document.

See http://wiki.apache.org/solr/HighlightingParameters#hl.snippets

Invasion answered 25/10, 2010 at 13:31 Comment(0)
M
0

I'm not sure if I'm allowed to cross post but I hope this question (which hasn't yet been answered) is very relevant to the above one..

https://stackoverflow.com/questions/28326758/solr-highlighting-multiple-terms-what-is-the-separator

Thanks very much indeed.

Myxomycete answered 27/2, 2015 at 12:33 Comment(1)
The link posted above is dead.Bookcraft

© 2022 - 2024 — McMap. All rights reserved.