Module org.elasticsearch.server
Class GeoContextMapping.Builder
java.lang.Object
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
Constructors -
Method Summary
Methods inherited from class org.elasticsearch.search.suggest.completion.context.ContextBuilder
category, geo
-
Constructor Details
-
Builder
-
-
Method Details
-
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:
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
Set the name of the field containing a geolocation to use- Parameters:
fieldName- name of the field- Returns:
- this
-
build
- Specified by:
buildin classContextBuilder<GeoContextMapping>
-