lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Whitman <>
Subject highlighting pt2: returning tokens out of order from PhraseQuery
Date Wed, 19 Mar 2008 14:26:13 GMT
Another highlighting question unrelated to my previous one:

Say we search for the band "I Love You But I've Chosen Darkness"

The highlight returns a snippet that does have the name altogether:

Lights (Live) : <span>I</span> <span>Love</span> <span>You</span>
<span>I've</span> <span>Chosen</span> <span>Darkness</span>

But also returns unrelated snips from the same page:
Black Francis Shop "<span>I</span> Think <span>I</span> <span>Love</

span> <span>You</span>"

Can we somehow force the highlighter to not return snips that do not  
exactly match the query?

View raw message