Geospatial allow searching within arbitrary “geo-shapes” such as rectangles, polygons, circles, points etc.
for querying geospatial searches, you can use any of the supported shapes:
_point to directly match an specific exact point:
Although you certainly can use any of the geospatial shapes in the same way we
used Point for Exact Matching, to directly match an specific
exact shape, you will probably more likely need to find documents within the
given shape. For that, the
_in keyword is needed:
In the example above we are searching inside a circle with it’s center is given
_longitude and a
_radius (see Supported Distance Units).
For searching inside the given shape you must use
Otherwise you’d be searching for the shape itself, not what’s in it.