Package | Description |
---|---|
org.elasticsearch.search.suggest.context |
Modifier and Type | Method and Description |
---|---|
GeolocationContextMapping.Builder |
GeolocationContextMapping.Builder.addDefaultLocation(double lat,
double lon)
Set a default location that should be used, if no location is
provided by the query
|
GeolocationContextMapping.Builder |
GeolocationContextMapping.Builder.addDefaultLocation(String geohash)
Set a default location that should be used, if no location is
provided by the query
|
GeolocationContextMapping.Builder |
GeolocationContextMapping.Builder.addDefaultLocations(Collection<String> geohashes)
Set a default location that should be used, if no location is
provided by the query
|
GeolocationContextMapping.Builder |
GeolocationContextMapping.Builder.defaultLocation(GeoPoint point)
Set a default location that should be used, if no location is
provided by the query
|
GeolocationContextMapping.Builder |
GeolocationContextMapping.Builder.field(String fieldName)
Set the name of the field containing a geolocation to use
|
static GeolocationContextMapping.Builder |
ContextBuilder.location(String name)
Create a new
GeolocationContextMapping |
static GeolocationContextMapping.Builder |
ContextBuilder.location(String name,
int precision,
boolean neighbors)
Create a new
GeolocationContextMapping with given precision and
neighborhood usage |
GeolocationContextMapping.Builder |
GeolocationContextMapping.Builder.neighbors(boolean neighbors)
Set neighborhood usage
|
GeolocationContextMapping.Builder |
GeolocationContextMapping.Builder.precision(double meters)
Set the precision use o make suggestions
|
GeolocationContextMapping.Builder |
GeolocationContextMapping.Builder.precision(double precision,
DistanceUnit unit)
Set the precision use o make suggestions
|
GeolocationContextMapping.Builder |
GeolocationContextMapping.Builder.precision(int level)
Set the precision use o make suggestions
|
GeolocationContextMapping.Builder |
GeolocationContextMapping.Builder.precision(String precision)
Set the precision use o make suggestions
|
Copyright © 2009–2015. All rights reserved.