Skip to content

Commit

Permalink
[doc/using-data-api][xs]: micro correction to geospatial query.
Browse files Browse the repository at this point in the history
  • Loading branch information
rufuspollock committed May 12, 2012
1 parent 2bab7cb commit d542a2d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions doc/using-data-api.rst
Expand Up @@ -500,16 +500,18 @@ We also need a mapping to specify that Location field is of type geo_point as th
Now the actual query::

{
"filtered" : {
"query" : {
"match_all" : {}
},
"filter" : {
"geo_distance" : {
"distance" : "20km",
"Location" : {
"lat" : 37.776,
"lon" : -122.41
"query": {
"filtered" : {
"query" : {
"match_all" : {}
},
"filter" : {
"geo_distance" : {
"distance" : "20km",
"Location" : {
"lat" : 37.776,
"lon" : -122.41
}
}
}
}
Expand Down

0 comments on commit d542a2d

Please sign in to comment.