Class HistogramCompositeAggregationSourceDescriptor<T>
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.
Inheritance
DescriptorBase<HistogramCompositeAggregationSourceDescriptor<T>, IHistogramCompositeAggregationSource>
CompositeAggregationSourceDescriptorBase<HistogramCompositeAggregationSourceDescriptor<T>, IHistogramCompositeAggregationSource, T>
HistogramCompositeAggregationSourceDescriptor<T>
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class HistogramCompositeAggregationSourceDescriptor<T> : CompositeAggregationSourceDescriptorBase<HistogramCompositeAggregationSourceDescriptor<T>, IHistogramCompositeAggregationSource, T>, IDescriptor, IHistogramCompositeAggregationSource, ICompositeAggregationSource
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Edit this page View SourceHistogramCompositeAggregationSourceDescriptor(string)
Declaration
public HistogramCompositeAggregationSourceDescriptor(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
Methods
| Edit this page View SourceInterval(double?)
The interval to use when bucketing documents
Declaration
public HistogramCompositeAggregationSourceDescriptor<T> Interval(double? interval)
Parameters
Type | Name | Description |
---|---|---|
double? | interval |
Returns
Type | Description |
---|---|
HistogramCompositeAggregationSourceDescriptor<T> |
Script(Func<ScriptDescriptor, IScript>)
A script to create the values for the composite buckets
Declaration
public HistogramCompositeAggregationSourceDescriptor<T> Script(Func<ScriptDescriptor, IScript> selector)
Parameters
Type | Name | Description |
---|---|---|
Func<ScriptDescriptor, IScript> | selector |
Returns
Type | Description |
---|---|
HistogramCompositeAggregationSourceDescriptor<T> |