Created
March 2, 2020 11:18
-
-
Save jim-at-jibba/336c23743d98edf67a8790ff8bf7985e to your computer and use it in GitHub Desktop.
Candide Elastic Search - Filtering
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
GET my_index/_search | |
{ | |
"query": { | |
"bool" : { | |
"must" : { | |
"match_all" : {} | |
}, | |
"filter" : { | |
"geo_bounding_box" : { | |
"location" : { | |
"top_left" : { | |
"lat" : 40.73, | |
"lon" : -74.1 | |
}, | |
"bottom_right" : { | |
"lat" : 40.01, | |
"lon" : -71.12 | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment