Created
March 11, 2013 18:31
-
-
Save sebhomengo/5136451 to your computer and use it in GitHub Desktop.
ElasticSearch geo_distance query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"query": { | |
"filtered": { | |
"query": { | |
"term" : { "amenity" : "restaurant" } | |
}, | |
"filter": { | |
"geo_distance": { | |
"distance": "0.3km", | |
"location": { | |
"lat": "48.231249", | |
"lon": "2.30998" | |
}, | |
"distance_type": "plane" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment