Hi,

Has anyone face the problem of when using highlighting, sometimes there are
results which are returned, but there is no highlighting to the result (ie:
no <em> tag).

I found that there is a match in another field which I did not include in
my hl.fl parameters when I do fl=*, but that same word acutally does appear
in content.

Would like to find out, why sometimes there is a match in content, but it
is not highlighted (the word is not in the stopword list)? Did I make any
mistakes in my configuration?

I've include my highlighting request handler from solrconfig.xml 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="group">true</str>
<str name="group.field">signature</str>
<str name="group.main">true</str>
<str name="group.cache.percent">100</str>
    </lst>
</requestHandler>


Regards,
Edwin

Reply via email to