geo-queries.asciidoc 1.2 KB

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