geo-queries.asciidoc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [[geo-queries]]
  2. == Geo queries
  3. Elasticsearch supports two types of geo data:
  4. <<mapping-geo-point-type,`geo_point`>> fields which support lat/lon pairs, and
  5. <<mapping-geo-shape-type,`geo_shape`>> fields, which support points,
  6. lines, circles, polygons, multi-polygons etc.
  7. The queries in this group are:
  8. <<query-dsl-geo-shape-query,`geo_shape`>> query::
  9. Find document with geo-shapes which either intersect, are contained by, or
  10. do not interesect with the specified geo-shape.
  11. <<query-dsl-geo-bounding-box-query,`geo_bounding_box`>> query::
  12. Finds documents with geo-points that fall into the specified rectangle.
  13. <<query-dsl-geo-distance-query,`geo_distance`>> query::
  14. Finds document with geo-points within the specified distance of a central
  15. point.
  16. <<query-dsl-geo-distance-range-query,`geo_distance_range`>> query::
  17. Like the `geo_point` query, but the range starts at a specified distance
  18. from the central point.
  19. <<query-dsl-geo-polygon-query,`geo_polygon`>> query::
  20. Find documents with geo-points within the specified polygon.
  21. <<query-dsl-geohash-cell-query,`geohash_cell`>> query::
  22. Find geo-points whose geohash intersects with the geohash of the specified
  23. point.
  24. include::geo-shape-query.asciidoc[]
  25. include::geo-bounding-box-query.asciidoc[]
  26. include::geo-distance-query.asciidoc[]
  27. include::geo-distance-range-query.asciidoc[]
  28. include::geo-polygon-query.asciidoc[]
  29. include::geohash-cell-query.asciidoc[]