Sorting Hits
Assuming your indexed data includes a geo-point named pin.location you can implement a sort by distance using the following
Direct JSON request to elastic search
1 2 3 4 5 6 7 8 9 10 11 |
|
Equivalent implementation in Elastica
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|