Created
March 2, 2020 11:17
-
-
Save jim-at-jibba/b95307cd307c2804a897deffdd79c76b to your computer and use it in GitHub Desktop.
Candide Elastic Search - Query
This file contains hidden or 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
GET /my_index/_search | |
{ | |
"query": { | |
"bool" : { | |
"must" : { | |
"match_all" : {} | |
}, | |
"filter" : { | |
"geo_distance" : { | |
"distance" : "200km", | |
"location" : { | |
"lat" : 40, | |
"lon" : -70 | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment