One of our indices contains documents that include an internal array. Say within a given document it contains the following:
"geoEntities" : [
"France",
"United States",
"China",
"Germany"
]
I want to be able to do a search that will only return a single document but have Elasticsearch return the document with the countries sorted like:
"geoEntities" : [
"China",
"France",
"Germany"
"United States"
]
I haven't found anything that says this is possible so I am hoping that someone can verify this one way or another.