Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6783

SolrHighlighter does not accept globs in multi-valued hl.fl argument

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      These two cases work correctly:

      • hl.fl = *_text
      • hl.fl = title_text,content_text,myfield

      But the expression hl.fl=*_text,myfield results in empty highlighted docs when the default highlighter is used.
      Using the PostingsSolrHighlighter it even causes the following exception:

      java.lang.IllegalArgumentException: fieldsIn must not be empty
      at org.apache.lucene.search.postingshighlight.PostingsHighlighter.highlightFieldsAsObjects(PostingsHighlighter.java:342)
      at org.apache.lucene.search.postingshighlight.PostingsHighlighter.highlightFields(PostingsHighlighter.java:303)
      at org.apache.solr.highlight.PostingsSolrHighlighter.doHighlighting(PostingsSolrHighlighter.java:140)
      at org.apache.solr.handler.component.HighlightComponent.process(HighlightComponent.java:146)
      at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:218)
      

      Not yet tested with FastVectorHighlighter.

      Tested with Solr 4.10.2.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              simon.endele Simon Endele
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: