Skip to content

Instantly share code, notes, and snippets.

@missinglink
Created June 26, 2014 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save missinglink/ce25f1f9f7554ff1010f to your computer and use it in GitHub Desktop.
Save missinglink/ce25f1f9f7554ff1010f to your computer and use it in GitHub Desktop.
Geo search for: -0.058202, 51.53254
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"bool" : {
"must" : [
{
"geo_shape": {
"boundaries": {
"relation": "intersects",
"shape": {
"type": "envelope",
"coordinates" : [
[-180, 51.53255],
[180, 51.53253]
]
}
}
}
},
{
"geo_shape": {
"boundaries": {
"relation": "intersects",
"shape": {
"type": "envelope",
"coordinates" : [
[-0.058201, 90],
[-0.058203, 0]
]
}
}
}
}
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment