Class BucketSortAggregationDescriptor<T>
A parent pipeline aggregation which sorts the buckets of its parent multi-bucket aggregation.
Zero or more sort fields may be specified together with the corresponding sort order.
Each bucket may be sorted based on its _key, _count or its sub-aggregations.
In addition, parameters from and size may be set in order to truncate the result buckets.
Inheritance
BucketSortAggregationDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class BucketSortAggregationDescriptor<T> : DescriptorBase<BucketSortAggregationDescriptor<T>, IBucketSortAggregation>, IDescriptor, IBucketSortAggregation, IAggregation where T : class
Type Parameters
Methods
|
Edit this page
View Source
From(int?)
Buckets in positions prior to the set value will be truncated
Declaration
public BucketSortAggregationDescriptor<T> From(int? from)
Parameters
Type |
Name |
Description |
int? |
from |
|
Returns
|
Edit this page
View Source
GapPolicy(GapPolicy?)
The policy to apply when gaps are found in the data
Declaration
public BucketSortAggregationDescriptor<T> GapPolicy(GapPolicy? gapPolicy)
Parameters
Returns
|
Edit this page
View Source
The metadata for the aggregation
Declaration
public BucketSortAggregationDescriptor<T> Meta(Func<FluentDictionary<string, object>, FluentDictionary<string, object>> selector)
Parameters
Returns
|
Edit this page
View Source
Size(int?)
The number of buckets to return. Defaults to all buckets of the parent aggregation
Declaration
public BucketSortAggregationDescriptor<T> Size(int? size)
Parameters
Type |
Name |
Description |
int? |
size |
|
Returns
|
Edit this page
View Source
Sort(Func<SortDescriptor<T>, IPromise<IList<ISort>>>)
The list of fields to sort on
Declaration
public BucketSortAggregationDescriptor<T> Sort(Func<SortDescriptor<T>, IPromise<IList<ISort>>> selector)
Parameters
Returns
Implements
Extension Methods