Class GeoContextMapping.Builder
org.elasticsearch.search.suggest.completion.context.ContextBuilder<GeoContextMapping>
org.elasticsearch.search.suggest.completion.context.GeoContextMapping.Builder
- Enclosing class:
- GeoContextMapping
-
Field Summary
Fields inherited from class org.elasticsearch.search.suggest.completion.context.ContextBuilder
name
-
Constructor Summary
ConstructorDescriptionname)
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
fieldName)
Set the name of the field containing a geolocation to useprecision(double meters)
Set the precision use o make suggestionsprecision(double precision, DistanceUnit unit)
Set the precision use o make suggestionsprecision(int level)
Set the precision use o make suggestionsprecision)
Set the precision use o make suggestionsMethods inherited from class org.elasticsearch.search.suggest.completion.context.ContextBuilder
category, geo
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Constructor Details
-
Builder
public Builder( name)
-
-
Method Details
-
precision
public precision)Set the precision use o make suggestions- Parameters:
precision
- precision as distance withDistanceUnit
. Default: meters- Returns:
- this
-
precision
Set the precision use o make suggestions- Parameters:
precision
- precision valueunit
-DistanceUnit
to use- Returns:
- this
-
precision
Set the precision use o make suggestions- Parameters:
meters
- precision as distance in meters- Returns:
- this
-
precision
Set the precision use o make suggestions- Parameters:
level
- maximum length of geohashes- Returns:
- this
-
field
public fieldName)Set the name of the field containing a geolocation to use- Parameters:
fieldName
- name of the field- Returns:
- this
-
build
- Specified by:
build
in classContextBuilder<GeoContextMapping>
-