I managed to narrow it down to the presence of dynamic field "*_custom_txt" in the hl.fl list. If the list contains only regular fields the highlighting works fine. However, I also want to highlight some dynamic fields.
Is this a bug? Thanks, Yoni -----Original Message----- From: Yoni Amir [mailto:yoni.a...@actimize.com] Sent: Sunday, August 26, 2012 11:31 AM To: solr-user@lucene.apache.org Subject: hl.fl is ignored in solr 4 beta? 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