lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark harwood <>
Subject Re: Highlighting "really" found terms
Date Tue, 05 Sep 2006 14:46:37 GMT
See here for a thread reviewing the challenges and possible solutions associated with this

An alternative highlighter implementation was recently contributed here:
I've not had the time to study this alternative in detail (I hope to soon) so I can't say
if it will do Spans correctly. 


----- Original Message ----
From: Pierre Van Ingelandt <>
Sent: Tuesday, 5 September, 2006 2:21:56 PM
Subject: Highlighting "really" found terms


After a search, I need to highlight only the terms that do "really"
correspond to the query.
For instance :
1/ I search docs with toto and titi in the SAME sentence (using
SpanNotQuery(spanNearQuery({"toto","titi"},99999)),".") )
2/ Then I try to highlight "toto" and "titi" found (I use the queryscorer
from highlight package)

Then the problem is that it highlights ALL the titi and toto terms in the
documents. (even if they are not in the same sentence).
Is there a way to highlight only the terms really found ?

Thanks a lot !


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message