lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dzmitry Petrushenka" <>
Subject matched terms are not highlighted
Date Fri, 23 Nov 2012 14:12:22 GMT
Hi All!

Has anyone ever had the following problem...

If use FastVectorHighlighter and  boundaryScanner with set to  
SENTENCE there are situations when not all matched terms are highlighted  
in fragments.


1. FastVectorHighlighter generates FieldFragList with info on what terms  
to highlight

FieldQuery, IndexReader, int, String, int))

2. but then boundaryScanner extends fragment further to keep entire  
SENTENCE. I guess it just adds text till the nearest dot. If there are any  
matching terms in that text added they not get highlighted (the reason is  
that in 1. there is no terms highlight info for the text added).

Has anyone was able to get the entire fragment terms highlighting and  
preserve sentence boundaries at the same time?

I guess that solution can be just not generate fragments but highlight the  
entire text and fragment it myself.

What do you think guys?


View raw message