问题
Here are two records:
Ryan Restaurant:
'location' => [ 'lat' => 72.1909090, 'lon' =>19.123456],
'name' => Ryan Restaurant,
'type' => 'restaurant'
Play Restaurant:
'location' => [ 'lat' => 72.1900010, 'lon' =>19.9645673],
'name' => Play Restaurant,
'type' => 'restaurant'
Ashita Singh:
'location' => [ 'lat' => 0.0000000, 'lon' =>0.000000],
'name' => Ashita Singh,
'type' => 'homemade'
How to display all the documents which have lat and long as 0.00 and documents which lie within 5km? Is it possible to not include some documents in sort?
来源:https://stackoverflow.com/questions/34481152/sort-by-geo-distance-where-latitude-and-longitude-given-is-0-00-in-elasticsearch