Module
GeoHashGridAggregation
GeoHashGridAggregation ( name )
Aggregation that works on geo_point fields and groups points into buckets that represent cells in a grid.
|
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 | field(field) | Sets the geo field to perform calculations from. |
Object | precision(p) | Sets the Geo Hash precision. The precision value can be between 1 and 12 where 12 is the highest precision. |
Object | shardSize(shardSize) | Determines how many geohash_grid the coordinating node will request from each shard. |
Object | size(size) | Sets the number of aggregation entries that will be returned. |
String | toJSON() | Retrieves the internal |
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.
|
field
Object field ( field )
Sets the geo field to perform calculations from.
|
precision
Object precision ( p )
Sets the Geo Hash precision. The precision value can be between 1 and 12
where 12 is the highest precision.
|
shardSize
Object shardSize ( shardSize )
Determines how many geohash_grid the coordinating node will request from
each shard.
|
size
Object size ( size )
Sets the number of aggregation entries that will be returned.
|
toJSON
String toJSON ( )
Retrieves the internal
|