I have situation where I need to highlight matching phrases in "text" field where as query is against "string" field. Its not highlighting now, may be because in text field they are all terms and hence not a match for phrase. How do i do it? With hl.alternateField, it identifies those things in <highlighting> field, but not applying default <em> around matching phrase. How do I get it to mark it?
Eg: <doc> <str name="keyword_text">smooth skin</str> // field type: string <str name="excerpt">Smooth skin</str> // field type: text </doc> query: http://localhost:8080/mycore/select?facet=true&group.ngroups=true&facet.mincount=1&group.limit=3&facet.limit=10&hl=true&rows=10&version=2&start=0&q=keyword:%22smooth+skin%22+and+publishStatus:Live&group.field=productName&group=true&facet.field=brand&hl.fl=excerpt&hl.alternateField=excerpt Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/Highlighting-text-field-when-query-is-for-string-field-tp3475334p3475334.html Sent from the Solr - User mailing list archive at Nabble.com.