Hi Lars, Thanks for it: it works great.
BR Christophe Lars Kotthoff wrote:
I'm doing the following query: q=text:abc AND type:typeAAnd 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)