> I'm doing the following query:
> q=text:abc AND type:typeA
> And I ask to return highlighting (query.setHighlight(true);). The search 
> term for field "type" (typeA) is also highlighted in the "text" field.
> Anyway to avoid this ?

Use setHighlightRequireFieldMatch(true) on the query object [1].

Lars


[1] 
http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/SolrQuery.html#setHighlightRequireFieldMatch(boolean)

Reply via email to