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

Grouping is broken on docvalues-only fields

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.2
    • Fix Version/s: None
    • Component/s: search
    • Labels:

      Description

      There are a few places where grouping uses FieldType.toObject(SchemaField.createField(String, float)) to translate a String field value to an Object. The problem is that createField returns null when the field is neither stored nor indexed, even if it has doc values.

      An option to fix it could be to use the ValueSource instead to resolve the Object value (similarily to NumericFacets).

        Attachments

        1. SOLR-4647.patch
          5 kB
          Scott Stults

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jpountz Adrien Grand
              • Votes:
                6 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: