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

Collapse QParser should give error for multiValued field

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.6
    • Component/s: search
    • Labels:
      None

      Description

      The Collapse QParser does give results if you collapse on a multi-valued field, but the document->value is somewhat arbitrarily chosen based on the internals of the FieldCache (FieldCacheImpl.SortedDocValuesCache).

      Note that the Grouping functionality accesses values via FieldType.getValueSource which is a layer of abstraction above that includes a multiValued error check.

      Collapse should throw an error here.

      p.s. easy to test with exampledocs collapsing on "cat"

        Attachments

        1. SOLR-6280.patch
          3 kB
          Munendra S N
        2. SOLR-6280.patch
          4 kB
          Munendra S N

          Activity

            People

            • Assignee:
              dsmiley David Smiley
              Reporter:
              dsmiley David Smiley
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: