geohash-cell-query.asciidoc 647 B

1234567891011121314151617
  1. [[java-query-dsl-geohash-cell-query]]
  2. ==== Geohash Cell Query
  3. See {ref}/query-dsl-geohash-cell-query.html[Geohash Cell Query]
  4. [source,java]
  5. --------------------------------------------------
  6. QueryBuilder qb = geoHashCellQuery("pin.location", <1>
  7. new GeoPoint(13.4080, 52.5186)) <2>
  8. .neighbors(true) <3>
  9. .precision(3); <4>
  10. --------------------------------------------------
  11. <1> field
  12. <2> point. Can also be a hash like `u30`
  13. <3> The `neighbors` option of the filter offers the possibility to filter cells
  14. next to the given cell.
  15. <4> precision level