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 authored and amercader committed May 15, 2012
1 parent b4df2a3 commit 0ce7227
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 0ce7227

Please sign in to comment.