Package | Description |
---|---|
org.elasticsearch.search.aggregations | |
org.elasticsearch.search.aggregations.bucket.range.geodistance |
Modifier and Type | Method and Description |
---|---|
static GeoDistanceBuilder |
AggregationBuilders.geoDistance(String name)
Create a new
GeoDistance aggregation with the given name. |
Modifier and Type | Method and Description |
---|---|
GeoDistanceBuilder |
GeoDistanceBuilder.addRange(double from,
double to)
Same as
addRange(String, double, double) but the key will be
automatically generated based on from and to . |
GeoDistanceBuilder |
GeoDistanceBuilder.addRange(String key,
double from,
double to)
Add a new range to this aggregation.
|
GeoDistanceBuilder |
GeoDistanceBuilder.addUnboundedFrom(double from)
Same as
addUnboundedFrom(String, double) but the key will be
computed automatically. |
GeoDistanceBuilder |
GeoDistanceBuilder.addUnboundedFrom(String key,
double from)
Add a new range with no upper bound.
|
GeoDistanceBuilder |
GeoDistanceBuilder.addUnboundedTo(double to)
Same as
addUnboundedTo(String, double) but the key will be
computed automatically. |
GeoDistanceBuilder |
GeoDistanceBuilder.addUnboundedTo(String key,
double to)
Add a new range with no lower bound.
|
GeoDistanceBuilder |
GeoDistanceBuilder.distanceType(GeoDistance distanceType)
Set the
distance type to use, defaults to
GeoDistance#SLOPPY_ARC . |
GeoDistanceBuilder |
GeoDistanceBuilder.field(String field)
Set the field to use to compute distances.
|
GeoDistanceBuilder |
GeoDistanceBuilder.geohash(String geohash)
Set the point to calculate distances from using its geohash.
|
GeoDistanceBuilder |
GeoDistanceBuilder.lat(double lat)
Set the latitude of the point to calculate distances from.
|
GeoDistanceBuilder |
GeoDistanceBuilder.lon(double lon)
Set the longitude of the point to calculate distances from.
|
GeoDistanceBuilder |
GeoDistanceBuilder.point(GeoPoint point)
Set the point to calculate distances from.
|
GeoDistanceBuilder |
GeoDistanceBuilder.point(String latLon)
Set the point to calculate distances from using a
lat,lon notation or geohash. |
GeoDistanceBuilder |
GeoDistanceBuilder.unit(DistanceUnit unit)
Set the unit to use for distances, default is kilometers.
|
Copyright © 2009–2015. All rights reserved.