Class TermsCompositeAggregationSourceDescriptor<T>
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.
Inheritance
CompositeAggregationSourceDescriptorBase<TermsCompositeAggregationSourceDescriptor<T>, ITermsCompositeAggregationSource, T>
TermsCompositeAggregationSourceDescriptor<T>
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class TermsCompositeAggregationSourceDescriptor<T> : CompositeAggregationSourceDescriptorBase<TermsCompositeAggregationSourceDescriptor<T>, ITermsCompositeAggregationSource, T>, IDescriptor, ITermsCompositeAggregationSource, ICompositeAggregationSource
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Edit this page View SourceTermsCompositeAggregationSourceDescriptor(string)
Declaration
public TermsCompositeAggregationSourceDescriptor(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
Methods
| Edit this page View SourceScript(Func<ScriptDescriptor, IScript>)
A script to create the values for the composite buckets
Declaration
public TermsCompositeAggregationSourceDescriptor<T> Script(Func<ScriptDescriptor, IScript> selector)
Parameters
Type | Name | Description |
---|---|---|
Func<ScriptDescriptor, IScript> | selector |
Returns
Type | Description |
---|---|
TermsCompositeAggregationSourceDescriptor<T> |