public static class GeoQueryContext.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GeoQueryContext |
build() |
GeoQueryContext.Builder |
setBoost(int boost)
Sets the query-time boost for the context
Defaults to 1
|
GeoQueryContext.Builder |
setGeoPoint(GeoPoint geoPoint)
Sets the geo point of the context.
|
GeoQueryContext.Builder |
setNeighbours(java.util.List<java.lang.Integer> neighbours)
Sets the precision levels at which geohash cells neighbours are considered.
|
GeoQueryContext.Builder |
setPrecision(int precision)
Sets the precision level for computing the geohash from the context geo point.
|
public GeoQueryContext.Builder setBoost(int boost)
public GeoQueryContext.Builder setPrecision(int precision)
public GeoQueryContext.Builder setNeighbours(java.util.List<java.lang.Integer> neighbours)
public GeoQueryContext.Builder setGeoPoint(GeoPoint geoPoint)
public GeoQueryContext build()