Hi, I'm trying to sort by location. Similar data and tests work correctly in Elastic Search but fail using Elastic App Search (latest 8.3 version). The results should be in the following order "Item-2, Item-3, Item-1", instead they are in this order "Item-1, Item-2, Item-3".
Request body:
{
"query": "",
"sort": {
"location": {
"center": [
0,
14
],
"order": "asc"
}
},
"page": {
"size": 10,
"current": 1
}
}
Response body
{
"meta": {
"alerts": [],
"warnings": [],
"precision": 2,
"engine": {
"name": "test-core-item",
"type": "default"
},
"page": {
"current": 1,
"total_pages": 1,
"total_results": 6,
"size": 10
},
"request_id": "c8f5aaaa71d9f152f203f5effd995031"
},
"results": [
{
"location": {
"raw": "0.0,0.0"
},
"_meta": {
"id": "Item-1",
"engine": "test-core-item",
"score": null
},
"id": {
"raw": "Item-1"
}
},
{
"location": {
"raw": "0.0,10.0"
},
"_meta": {
"id": "Item-2",
"engine": "test-core-item",
"score": null
},
"id": {
"raw": "Item-2"
}
},
{
"location": {
"raw": "0.0,20.0"
},
"_meta": {
"id": "Item-3",
"engine": "test-core-item",
"score": null
},
"id": {
"raw": "Item-3"
}
}
]
}