-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 6.0
-
Fix Version/s: 9.1
-
Component/s: Elasticsearch
-
Epic Link:
-
Backlog priority:350
-
Sprint:nxBD 9.1.5, nxBD 9.1.6, nxcore 9.1.1
-
Story Points:2
Sorting on a field that is not explicitly defined in the mapping and that has never been submited via a document fails with:
Failed to execute phase [dfs], all shards failed; shardFailures ... Parse Failure [No mapping found for [my:field] in order to sort on]
A possible work around is to define the field in the Nuxeo Elasticsearch mapping:
"my:field" : { "type" : "string" }
or to create a document with non empty field.
This could be fixed by adding an unmapped_type sort option as describe here:
https://www.elastic.co/guide/en/elasticsearch/reference/1.5/search-request-sort.html
–
No more SearchParseException on unmapped/unindexed field when sorting, we now using the unmappedType sort option.
- is required by
-
NXP-20890 sort with dc:description or note:note does not work in ES
- Reopened