Class CompositeAggregationSourcesDescriptor<T>
Inheritance
CompositeAggregationSourcesDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class CompositeAggregationSourcesDescriptor<T> : DescriptorPromiseBase<CompositeAggregationSourcesDescriptor<T>, IList<ICompositeAggregationSource>>, IDescriptor, IPromise<IList<ICompositeAggregationSource>> where T : class
Type Parameters
Constructors
|
Edit this page
View Source
CompositeAggregationSourcesDescriptor()
Declaration
public CompositeAggregationSourcesDescriptor()
Methods
|
Edit this page
View Source
DateHistogram(string, Func<DateHistogramCompositeAggregationSourceDescriptor<T>, IDateHistogramCompositeAggregationSource>)
A values source that can be applied on date values to build fixed size interval over the values.
The interval parameter defines a date/time expression that determines how values should be transformed.
For instance an interval set to month will translate any values to its closest month interval..
Declaration
public CompositeAggregationSourcesDescriptor<T> DateHistogram(string name, Func<DateHistogramCompositeAggregationSourceDescriptor<T>, IDateHistogramCompositeAggregationSource> selector)
Parameters
Returns
|
Edit this page
View Source
GeoTileGrid(string, Func<GeoTileGridCompositeAggregationSourceDescriptor<T>, IGeoTileGridCompositeAggregationSource>)
A values source that is equivalent to a simple Geo aggregation.
Declaration
public CompositeAggregationSourcesDescriptor<T> GeoTileGrid(string name, Func<GeoTileGridCompositeAggregationSourceDescriptor<T>, IGeoTileGridCompositeAggregationSource> selector)
Parameters
Returns
|
Edit this page
View Source
Histogram(string, Func<HistogramCompositeAggregationSourceDescriptor<T>, IHistogramCompositeAggregationSource>)
A value source that can be applied on numeric values to build fixed size interval over the values.
The interval parameter defines how the numeric values should be transformed.
For instance an interval set to 5 will translate any numeric values to its closest interval,
a value of 101 would be translated to 100 which is the key for the interval between 100 and 105.
Declaration
public CompositeAggregationSourcesDescriptor<T> Histogram(string name, Func<HistogramCompositeAggregationSourceDescriptor<T>, IHistogramCompositeAggregationSource> selector)
Parameters
Returns
|
Edit this page
View Source
Terms(string, Func<TermsCompositeAggregationSourceDescriptor<T>, ITermsCompositeAggregationSource>)
A values source that is equivalent to a simple terms aggregation.
The values are extracted from a field or a script exactly like the terms aggregation.
Declaration
public CompositeAggregationSourcesDescriptor<T> Terms(string name, Func<TermsCompositeAggregationSourceDescriptor<T>, ITermsCompositeAggregationSource> selector)
Parameters
Returns
Implements
Extension Methods