geo-bounding-box-query.asciidoc 514 B

12345678910111213141516
  1. [[java-query-dsl-geo-bounding-box-query]]
  2. ==== Geo Bounding Box Query
  3. See {ref}/query-dsl-geo-bounding-box-query.html[Geo Bounding Box Query]
  4. [source,java]
  5. --------------------------------------------------
  6. QueryBuilder qb = geoBoundingBoxQuery("pin.location") <1>
  7. .setCorners(40.73, -74.1, <2>
  8. 40.717, -73.99); <3>
  9. --------------------------------------------------
  10. <1> field
  11. <2> bounding box top left point
  12. <3> bounding box bottom right point