I have a setup for /select handler which, regarding highlighting, looks roughly 
like this:

        <requestHandler name="/select" class="solr.SearchHandler" 
default="true">
                <lst name="defaults">
                        <str name="defType">edismax</str>
                        <str name="qf">all_text</str>
                        ...
                        <str name="fl">id, module, identifier, type, category, 
... , score</str>
                        ...
                        <str name="hl">on</str>
                        <str name="hl.fl">identifier type owner_name 
*_custom_txt ...</str>
                        <bool name="hl.requireFieldMatch">false</bool>
                        <bool name="hl.usePhraseHighlighter">true</bool>
                        <bool name="hl.highlightMultiTerm">true</bool>
                        <int name="hl.snippets">10</int>
                        <bool name="hl.mergeContiguous">true</bool>
                        <int name="hl.maxAnalyzedChars">-1</int>
                        
                </lst>
        </requestHandler>

As you can see, I search only on one field "all_text". I use 
hl.requireFieldMatch=false in order to highlight other fields. However, I limit 
the number of other fields using hl.fl parameter. However, it is not working. 
Solr returns highlights for a number of other fields which are not in the list 
(one of those is the field all_text itself, but other fields get highlight too).

Is this a known bug?

Thanks,
Yoni

Reply via email to