Class GeoHashGridAggregationDescriptor<T>
Inheritance
GeoHashGridAggregationDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class GeoHashGridAggregationDescriptor<T> : BucketAggregationDescriptorBase<GeoHashGridAggregationDescriptor<T>, IGeoHashGridAggregation, T>, IDescriptor, IGeoHashGridAggregation, IBucketAggregation, IAggregation where T : class
Type Parameters
Methods
|
Edit this page
View Source
Bounds(Func<BoundingBoxDescriptor, IBoundingBox>)
Restricts the points considered to those that fall within the bounds provided.
Declaration
public GeoHashGridAggregationDescriptor<T> Bounds(Func<BoundingBoxDescriptor, IBoundingBox> selector)
Parameters
Returns
|
Edit this page
View Source
Field(Field)
The name of the field indexed with geopoints.
Declaration
public GeoHashGridAggregationDescriptor<T> Field(Field field)
Parameters
| Type |
Name |
Description |
| Field |
field |
|
Returns
|
Edit this page
View Source
Field<TValue>(Expression<Func<T, TValue>>)
The name of the field indexed with geopoints.
Declaration
public GeoHashGridAggregationDescriptor<T> Field<TValue>(Expression<Func<T, TValue>> field)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
GeoHashPrecision(GeoHashPrecision?)
The string length of the geohashes used to define cells/buckets in the results.
Defaults to Precision5.
Declaration
public GeoHashGridAggregationDescriptor<T> GeoHashPrecision(GeoHashPrecision? precision)
Parameters
Returns
|
Edit this page
View Source
ShardSize(int?)
To allow for more accurate counting of the top cells returned in the final result the aggregation defaults to returning
max(10,(size x number-of-shards)) buckets from each shard. If this heuristic is undesirable,
the number considered from each shard can be over-ridden using this parameter.
Declaration
public GeoHashGridAggregationDescriptor<T> ShardSize(int? shardSize)
Parameters
| Type |
Name |
Description |
| int? |
shardSize |
|
Returns
|
Edit this page
View Source
Size(int?)
The maximum number of geohash buckets to return. Defaults to 10,000. When results are trimmed,
buckets are prioritised based on the volumes of documents they contain.
Declaration
public GeoHashGridAggregationDescriptor<T> Size(int? size)
Parameters
| Type |
Name |
Description |
| int? |
size |
|
Returns
Implements
Extension Methods