Class GeoQueryContext.Builder
- java.lang.Object
-
- org.elasticsearch.search.suggest.completion.context.GeoQueryContext.Builder
-
- Enclosing class:
- GeoQueryContext
public static class GeoQueryContext.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoQueryContext
build()
GeoQueryContext.Builder
setBoost(int boost)
Sets the query-time boost for the context Defaults to 1GeoQueryContext.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.
-
-
-
Method Detail
-
setBoost
public GeoQueryContext.Builder setBoost(int boost)
Sets the query-time boost for the context Defaults to 1
-
setPrecision
public GeoQueryContext.Builder setPrecision(int precision)
Sets the precision level for computing the geohash from the context geo point. Defaults to using index-time precision level
-
setNeighbours
public GeoQueryContext.Builder setNeighbours(java.util.List<java.lang.Integer> neighbours)
Sets the precision levels at which geohash cells neighbours are considered. Defaults to only considering neighbours at the index-time precision level
-
setGeoPoint
public GeoQueryContext.Builder setGeoPoint(GeoPoint geoPoint)
Sets the geo point of the context. This is a required field
-
build
public GeoQueryContext build()
-
-