Class CompositeAggregationSourceDescriptorBase<TDescriptor, TInterface, T>
Inheritance
CompositeAggregationSourceDescriptorBase<TDescriptor, TInterface, T>
Assembly: OpenSearch.Client.dll
Syntax
public abstract class CompositeAggregationSourceDescriptorBase<TDescriptor, TInterface, T> : DescriptorBase<TDescriptor, TInterface>, IDescriptor, ICompositeAggregationSource where TDescriptor : CompositeAggregationSourceDescriptorBase<TDescriptor, TInterface, T>, TInterface where TInterface : class, ICompositeAggregationSource
Type Parameters
Name |
Description |
TDescriptor |
|
TInterface |
|
T |
|
Constructors
|
Edit this page
View Source
CompositeAggregationSourceDescriptorBase(string, string)
Declaration
protected CompositeAggregationSourceDescriptorBase(string name, string sourceType)
Parameters
Methods
|
Edit this page
View Source
Field(Field)
The field from which to extract value
Declaration
public TDescriptor Field(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
Type |
Description |
TDescriptor |
|
|
Edit this page
View Source
Field<TValue>(Expression<Func<T, TValue>>)
The field from which to extract value
Declaration
public TDescriptor Field<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type |
Description |
TDescriptor |
|
Type Parameters
|
Edit this page
View Source
MissingBucket(bool?)
By default documents without a value for a given source are ignored. It is possible to include
them in the response as null by setting this to true
Declaration
public TDescriptor MissingBucket(bool? includeMissing = true)
Parameters
Type |
Name |
Description |
bool? |
includeMissing |
|
Returns
Type |
Description |
TDescriptor |
|
|
Edit this page
View Source
Order(SortOrder?)
Defines the direction of sorting for each
value source. Defaults to Ascending
Declaration
public TDescriptor Order(SortOrder? order)
Parameters
Returns
Type |
Description |
TDescriptor |
|
Implements
Extension Methods