lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Whitman <brian.whit...@variogr.am>
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"
.../select?rows=100&q=%22I%20Love%20You%20But%20I\'ve%20Chosen 
%20Darkness 
%22 
&fq 
= 
type:html 
&hl=true&hl.fl=content&hl.fragsize=500&hl.snippets=5&hl.simple.pre= 
%3Cspan%3E&hl.simple.post=%3C/span%3E

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

Lights (Live) : <span>I</span> <span>Love</span> <span>You</span>
But  
<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?



Mime
View raw message