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

group.field returns no groups for trie fields with non zero precisionstep

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      I have an statusid field in my schema setup as

      <field name="statusid" type="tint" indexed="true" stored="true" required="true"/>
      
      <fieldType name="tint" class="solr.TrieIntField" precisionStep="4" positionIncrementGap="0"/>
      
      

      I am running a multi shard cloud, and when issuing a query such as the following:

      /?q=:&group.field=statusid&group=true

      I get a response such as

      "grouped": {
          "statusid": {
            "matches": 376601,
            "groups": [
              {
                "groupValue": 0,
                "doclist": {
                  "numFound": 0,
                  "start": 0,
                  "docs": []
                }
              },
              {
                "groupValue": 0,
                "doclist": {
                  "numFound": 0,
                  "start": 0,
                  "docs": []
                }
              }
            ]
          }
        }
      

      I know there are many results with non zero status ids in the index (verified by faceting on the statusid field

      "facet_fields": {
            "statusid": [
              "0",
              177460,
              "1",
              163303,
              "9",
              34291,
              "7",
              804,
              "2",
              587,
              "8",
              83,
              "6",
              73
            ]
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ddhutia Devansh Dhutia
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: