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: requireFieldMatch not returning anything even if field matches
Date Wed, 19 Mar 2008 14:21:55 GMT
on a solr "text" fieldtype called content, I have text like the  
following:
"Bono (L), Irish lead singer of the band U2 and Kurt Beck, chairman of  
the German Social Democratic Party (SPD) address the media at the  
party?s headquarters in Berlin May 14, 2007."

A query with highlighting and requireFieldMatch like so:
.../select?q= 
%22U2 
%22 
&hl 
= 
true 
&hl 
.fl 
= 
content 
&hl.requireFieldMatch=true&hl.fragsize=500&hl.snippets=5&hl.simple.pre= 
%3Cspan%3E&hl.simple.post=%3C/span%3E

does not return highlighting for this document (it is returned as a  
query match.)

If I turn off requireFieldMatch, I do get highlighting:
  Bono, Irish lead singer of the band <span>U</span><span>2</span>
 
stand in front of a statue of late German Chancellor and SPD leader  
Willy Brandt at the party?s headquarters in Berlin May 14, 2007.

What is requireFieldMatch doing?



Mime
View raw message