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

Grouping on int field with docValues in SolrCloud raises exception.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.8.1
    • Fix Version/s: None
    • Component/s: SolrCloud

      Description

      We have a grouping field which we defined as an integer; when we run a query grouping on that field it works fine in a non-cloud configuration, but when we try the same query in a SolrCloud configuration with multiple shards, we get the following error:

      Type mismatch: <fieldName> was indexed as NUMERIC

      Schema:

      <dynamicField name="*_i"  type="int"    indexed="true"  stored="true" docValues="true"/>
      

      Query:

      q=*:*&group=true&group.field=<fieldName>&group.limit=1
      

        Attachments

        1. SOLR-7052.patch
          31 kB
          Vitaliy Zhovtyuk

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Beliy.Dima Beliy
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: