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

Collapse QParser should give error for multiValued field

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 7.6
    • search
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: