17 lines
514 B
Plaintext
17 lines
514 B
Plaintext
[[java-query-dsl-geo-bounding-box-query]]
|
|
==== Geo Bounding Box Query
|
|
|
|
See {ref}/query-dsl-geo-bounding-box-query.html[Geo Bounding Box Query]
|
|
|
|
[source,java]
|
|
--------------------------------------------------
|
|
QueryBuilder qb = geoBoundingBoxQuery("pin.location") <1>
|
|
.setCorners(40.73, -74.1, <2>
|
|
40.717, -73.99); <3>
|
|
--------------------------------------------------
|
|
<1> field
|
|
<2> bounding box top left point
|
|
<3> bounding box bottom right point
|
|
|
|
|