lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Highlighting Issue
Date Thu, 03 Jun 2010 13:33:15 GMT
> We have Highlighting enabled.  We specify that we only
> want highlighting on
> the "body" property.
> 
> When doing a query like this: (body:tester OR
> project_id:704) the text
> highlighted in the body includes any text that is "tester"
> and any text that
> is "704".
> 
> Is there a way to prevent the highlighting from marking up
> values that are
> in the query that have nothing to do with actually matching
> on the body?


hl.requireFieldMatch=true

http://wiki.apache.org/solr/HighlightingParameters#hl.requireFieldMatch


      

Mime
View raw message