On 10-Apr-08, at 12:26 AM, khirb7 wrote:

hello every body

just one other question, to analyse and modify Solr's snippet, I want to
know if  org.apache.solr.util.HighlightingUtils
is the class generating the snippet and which methode generate them, and could you please explain me how are they generated in that class and where
exactly to modify it. all that in order to not return the first word
encountered highlighted but to return an other one because of the problem I
explained  in my previous messages

Unfortunately I have not familiar with nutch's snippet generation.

Solr's highlighting is located in org.apache.solr.util.HighlightingUtils in version 1.2, in the current (trunk) version, it is located in
org.apache.solr.highlight.* package.

Your use case is a little tricky. The best way to deal with it in my opinion is to strip out the header before sending the data to Solr. This will improve your highlighting _and_ your search relevance.

-Mike

Reply via email to