Fields not getting sorted in alphabetical order in elasticsearch
问题 I have a few documents with the a name field in it. I am using analyzed version of the name field for search and not_analyzed for sorting purposes. The sorting happens in one level, that is the names are sorted alphabetically at first. But within the list of an alphabet, the names are getting sorted lexicographically rather than alphabetically. Here is the mapping I have used: { "mappings": { "seing": { "properties": { "name": { "type": "string", "fields": { "raw": { "type": "string", "index"