Module
GeoDistanceAggregation
GeoDistanceAggregation ( name )
Aggregation that works on geo_point fields and conceptually works very similar to the range aggregation.
|
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | agg(agg) | Add a nesated aggregation. This method can be called multiple times in order to set multiple nested aggregations what will be executed at the same time as the parent aggregation. Alias for the aggregation method. |
Object | aggregation(agg) | Add a nesated aggregation. This method can be called multiple times in order to set multiple nested aggregations what will be executed at the same time as the parent aggregation. |
Object | center(p) | Sets the point of origin from where distances will be measured. Same as origin. |
Object | distanceType(type) | How to compute the distance. Valid values are: plane, arc, sloppy_arc, and factor. |
Object | field(field) | Sets the field to gather terms from. |
Object | keyed(trueFalse) | Enable the response to be returned as a keyed object where the key is the bucket interval. |
Object | origin(p) | Sets the point of origin from where distances will be measured. |
Object | point(p) | Sets the point of origin from where distances will be measured. Same as origin. |
Object | range(from,to,key) | Adds a range to the list of exsiting range expressions. |
String | toJSON() | Retrieves the internal |
Object | unit(unit) | Sets the distance unit. Valid values are: in, yd, ft, km, NM, mm, cm, mi, and m. |
Method Detail
agg
Object agg ( agg )
Add a nesated aggregation. This method can be called multiple times
in order to set multiple nested aggregations what will be executed
at the same time as the parent aggregation. Alias for the
aggregation method.
|
aggregation
Object aggregation ( agg )
Add a nesated aggregation. This method can be called multiple times
in order to set multiple nested aggregations what will be executed
at the same time as the parent aggregation.
|
center
Object center ( p )
Sets the point of origin from where distances will be measured. Same as
origin.
|
distanceType
Object distanceType ( type )
How to compute the distance. Valid values are:
plane, arc, sloppy_arc, and factor.
|
field
Object field ( field )
Sets the field to gather terms from.
|
keyed
Object keyed ( trueFalse )
Enable the response to be returned as a keyed object where the key is the
bucket interval.
|
origin
Object origin ( p )
Sets the point of origin from where distances will be measured.
|
point
Object point ( p )
Sets the point of origin from where distances will be measured. Same as
origin.
|
range
Object range ( from, to, key )
Adds a range to the list of exsiting range expressions.
|
toJSON
String toJSON ( )
Retrieves the internal
|
unit
Object unit ( unit )
Sets the distance unit. Valid values are:
in, yd, ft, km, NM, mm, cm, mi, and m.
|