123456789101112131415 |
- [[java-query-dsl-geo-distance-query]]
- ==== Geo Distance Query
- See {ref}/query-dsl-geo-distance-query.html[Geo Distance Query]
- [source,java]
- --------------------------------------------------
- QueryBuilder qb = geoDistanceQuery("pin.location") <1>
- .point(40, -70) <2>
- .distance(200, DistanceUnit.KILOMETERS); <3>
- --------------------------------------------------
- <1> field
- <2> center point
- <3> distance from center point
|