> 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



Reply via email to