OpenSearch/docs/reference/query-dsl/geo-queries.asciidoc
Dominic Page b0884baf46
Geo shape query vs geo point backport (#53774)
Backport to 7x

Enable geo_shape query to work on geo_point fields for shapes: circle, polygon, multipolygon, rectangle see: #48928
Co-Authored-By:  @iverase
2020-03-19 13:00:36 +01:00

34 lines
1.0 KiB
Plaintext

[[geo-queries]]
== Geo queries
Elasticsearch supports two types of geo data:
<<geo-point,`geo_point`>> fields which support lat/lon pairs, and
<<geo-shape,`geo_shape`>> fields, which support points,
lines, circles, polygons, multi-polygons, etc.
The queries in this group are:
<<query-dsl-geo-bounding-box-query,`geo_bounding_box`>> query::
Finds documents with geo-points that fall into the specified rectangle.
<<query-dsl-geo-distance-query,`geo_distance`>> query::
Finds documents with geo-points within the specified distance of a central point.
<<query-dsl-geo-polygon-query,`geo_polygon`>> query::
Find documents with geo-points within the specified polygon.
<<query-dsl-geo-shape-query,`geo_shape`>> query::
Finds documents with:
* `geo-shapes` which either intersect, are contained by, or do not intersect
with the specified geo-shape
* `geo-points` which intersect the specified
geo-shape
include::geo-bounding-box-query.asciidoc[]
include::geo-distance-query.asciidoc[]
include::geo-polygon-query.asciidoc[]
include::geo-shape-query.asciidoc[]