Class GeoQueryContext.Builder
java.lang.Object
org.elasticsearch.search.suggest.completion.context.GeoQueryContext.Builder
- Enclosing class:
- GeoQueryContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setBoost
(int boost) Sets the query-time boost for the context Defaults to 1setGeoPoint
(GeoPoint geoPoint) Sets the geo point of the context.setNeighbours
(List<Integer> neighbours) Sets the precision levels at which geohash cells neighbours are considered.setPrecision
(int precision) Sets the precision level for computing the geohash from the context geo point.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setBoost
Sets the query-time boost for the context Defaults to 1 -
setPrecision
Sets the precision level for computing the geohash from the context geo point. Defaults to using index-time precision level -
setNeighbours
Sets the precision levels at which geohash cells neighbours are considered. Defaults to only considering neighbours at the index-time precision level -
setGeoPoint
Sets the geo point of the context. This is a required field -
build
-