Tadas Dailyda created SOLR-8524:
-----------------------------------

             Summary: group.field=<ICUCollation field> gives weird values in 
groupValue
                 Key: SOLR-8524
                 URL: https://issues.apache.org/jira/browse/SOLR-8524
             Project: Solr
          Issue Type: Bug
          Components: SearchComponents - other
    Affects Versions: 5.3.1
         Environment: CentOS 7
            Reporter: Tadas Dailyda
            Priority: Minor


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:
{code:javascript}
"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"
              }
            ]
          }
        },
        ........
{code}

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to