You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Zheng Lin Edwin Yeo <ed...@gmail.com> on 2015/07/29 11:25:31 UTC
Problem with Highlighting results
Hi,
I'm using Solr 5.2.1, and sometimes, the highlighting return with results,
but there is no correct match in all the fields that are listed in hl.fl,
and there is also no <em> tag on the results at all.
What could be the reason that this is happening?
I've include my highlighting request handler here.
<requestHandler name="/highlight" class="solr.SearchHandler">
<lst name="defaults">
<str name="echoParams">explicit</str>
<int name="rows">10</int>
<str name="wt">json</str>
<str name="indent">true</str>
<str name="df">text</str>
<str name="fl">id, title, content_type, last_modified, url, score</str>
<str name="hl">on</str>
<str name="hl.fl">id, title, content, author, tag</str>
<str name="hl.highlightMultiTerm">true</str>
<str name="hl.preserveMulti">true</str>
<str name="hl.encoder">html</str>
<str name="hl.fragsize">200</str>
<str name="hl.regex.slop">0.6</str>
</lst>
</requestHandler>
Regards,
Edwin