Dave Vieglais created SOLR-16345:
------------------------------------

             Summary: /export 500 error with multivalued string sort
                 Key: SOLR-16345
                 URL: https://issues.apache.org/jira/browse/SOLR-16345
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: query
    Affects Versions: 9.0
            Reporter: Dave Vieglais


A 500 error is reported when using the `/export` handler and sorting on a 
multi-valued string field.

Service is current 9.0 release running under docker.

Using default schema and test documents:

```

[
  {
    "id": "a"
  },
  {
    "id": "aa",
    "child_ss": [
      "a"
    ]
  }
]

```

the request:

{{/export?q=*:*&sort=child_ss%20asc&fl=id,child_ss}}

results in a 500 error with no response body.

 

Using the `/select` endpoint works as expected:

{{/select?q=*:*&sort=child_ss%20asc&fl=id,child_ss}}

Response:

{{{}}
{{  "responseHeader": {}}
{{    "zkConnected": true,}}
{{    "status": 0,}}
{{    "QTime": 0,}}
{{    "params": {}}
{{      "q": "*:*",}}
{{      "fl": "id,child_ss",}}
{{      "sort": "child_ss asc"}}
{{    }}}
{{  },}}
{{  "response": {}}
{{    "numFound": 2,}}
{{    "start": 0,}}
{{    "numFoundExact": true,}}
{{    "docs": [}}
{{      {}}
{{        "id": "aa",}}
{{        "child_ss": [}}
{{          "a"}}
{{        ]}}
{{      },}}
{{      {}}
{{        "id": "a"}}
{{      }}}
{{    ]}}
{{  }}}
{{}}}

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to