geo-queries.asciidoc 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. [[geo-queries]]
  2. == Geo queries
  3. Elasticsearch supports two types of geo data:
  4. <<geo-point,`geo_point`>> fields which support lat/lon pairs, and
  5. <<geo-shape,`geo_shape`>> fields, which support points,
  6. lines, circles, polygons, multi-polygons, etc.
  7. The queries in this group are:
  8. <<query-dsl-geo-bounding-box-query,`geo_bounding_box`>> query::
  9. Finds documents with geo-points that fall into the specified rectangle.
  10. <<query-dsl-geo-distance-query,`geo_distance`>> query::
  11. Finds documents with geo-points within the specified distance of a central point.
  12. <<query-dsl-geo-polygon-query,`geo_polygon`>> query::
  13. Find documents with geo-points within the specified polygon.
  14. <<query-dsl-geo-shape-query,`geo_shape`>> query::
  15. Finds documents with:
  16. * `geo-shapes` which either intersect, are contained by, or do not intersect
  17. with the specified geo-shape
  18. * `geo-points` which intersect the specified
  19. geo-shape
  20. include::geo-bounding-box-query.asciidoc[]
  21. include::geo-distance-query.asciidoc[]
  22. include::geo-polygon-query.asciidoc[]
  23. include::geo-shape-query.asciidoc[]