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

Highlighting fails for Range queries on Multi-valued String fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.5, 7.7.1
    • 8.2
    • highlighter
    • None
    • RedHat Linux v7

      Java 1.8.0_201

    Description

      Range queries against multi-valued string fields produces useless highlighting, even though "hl.highlightMultiTerm":"true"

      I have uncovered what I believe is a bug. At the very lease it is a difference in behavior between Solr v5.1.0 and v7.5.0 (and v7.7.1).

      I have a multi-valued string Field defined in my schema as:

      <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
      <field name="MyStringField" type="string" indexed="true" stored="true" multiValued="true" />

      I am using a query containing a Range clause and I am using highlighting to get the list of values that actually matched the range query.

      All examples below were using the appropriate Solr Admin Server SolrCore Query page.

       

      Attachments

        1. SOLR-13367.patch
          7 kB
          David Smiley
        2. SOLR-13367.patch
          4 kB
          David Smiley
        3. SOLR-13367.patch
          4 kB
          David Smiley

        Issue Links

          Activity

            People

              dsmiley David Smiley
              wolfyman Karl Wolf
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m