: 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.)
Is "content" the default search field, or is the document matching because you have a differnet default search field which also contains "U2" ? from the wiki... http://wiki.apache.org/solr/HighlightingParameters >> If true, then a field will only be highlighted if the query matched in >> this particular field (normally, terms are highlighted in all requested >> field regardless of which field matched the query). so a query for... artist:U2 comments:Bono ...would only highlight "U2" in the artist field and "Bono" in the comments field (even if the string "U2" also appeared in the comments field) -Hoss