How can I sort all 176 documents by location_details.circle.gps given that bucket_sort only sorts the first 10 elements and cannot be used with composite aggregations?

I have 176 documents and I want to sort them based on the location_details.circle.gps field. Here is my mapping:
"location_details": {
"properties": {
"address": {
"properties": {
"area_code": { "type": "keyword", "index": false },
"building": { "type": "keyword", "index": false },
"city": { "type": "keyword", "index": false },
"country": { "type": "keyword", "index": false },
"door": { "type": "keyword", "index": false },
"locality": { "type": "keyword", "index": false },
"name": { "type": "keyword", "index": false },
"state": { "type": "keyword", "index": false },
"street": { "type": "keyword", "index": false }
}
},
"average_time_to_ship": { "type": "float" },
"circle": {
"properties": {
"_id": { "type": "keyword", "index": false },
"gps": { "type": "geo_point" },
"radius": {
"properties": {
"unit": { "type": "keyword", "index": false },
"value": { "type": "keyword", "index": false }
}
}
}
},
"gps": { "type": "geo_point" }
}
}
Since bucket_sort and composite aggregations cannot be used together, and bucket_sort only sorts the first 10 elements, how can I achieve sorting all elements based on location_details.circle.gps? Any help would be highly appreciated as I am running on a tight deadline

From Elastic Search to Elasticsearch

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.