diff --git a/doc/using-data-api.rst b/doc/using-data-api.rst index 6a17458b99c..f0a96172d08 100644 --- a/doc/using-data-api.rst +++ b/doc/using-data-api.rst @@ -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 + } } } }