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

group.field=<ICUCollation field> gives weird values in groupValue

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.3.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      CentOS 7

      Description

      I have field first_letter of type ICUCollationField and I do group query like so:

      q=:&group=true&group.field=first_letter&fl=first_letter&sort=first_letter+asc

      And get smth like this:

      "grouped": {
          "first_letter": {
            "matches": 138,
            "groups": [
              {
                "groupValue": ")\u0000",
                "doclist": {
                  "numFound": 3,
                  "start": 0,
                  "docs": [
                    {
                      "first_letter": "A"
                    }
                  ]
                }
              },
              {
                "groupValue": "+\u0000",
                "doclist": {
                  "numFound": 27,
                  "start": 0,
                  "docs": [
                    {
                      "first_letter": "B"
                    }
                  ]
                }
              },
              ........
      

      Letters are obviously stored as they shoud be, and sorting works fine.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              skirsdeda Tadas Dailyda
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: