原文地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/geo-queries.html, 原文档版权归 www.elastic.co 所有
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Geo queriesedit
Elasticsearch supports two types of geo data:
geo_point
fields which support lat/lon pairs, and
geo_shape
fields, which support points,
lines, circles, polygons, multi-polygons, etc.
The queries in this group are:
-
geo_bounding_box
query - Finds documents with geo-points that fall into the specified rectangle.
-
geo_distance
query - Finds documents with geo-points within the specified distance of a central point.
-
geo_polygon
query - Find documents with geo-points within the specified polygon.
-
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
-