Class FiltersAggregationDescriptor<T>
Inheritance
FiltersAggregationDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class FiltersAggregationDescriptor<T> : BucketAggregationDescriptorBase<FiltersAggregationDescriptor<T>, IFiltersAggregation, T>, IDescriptor, IFiltersAggregation, IBucketAggregation, IAggregation where T : class
Type Parameters
Methods
|
Edit this page
View Source
AnonymousFilters(IEnumerable<Func<QueryContainerDescriptor<T>, QueryContainer>>)
Declaration
public FiltersAggregationDescriptor<T> AnonymousFilters(IEnumerable<Func<QueryContainerDescriptor<T>, QueryContainer>> selectors)
Parameters
Returns
|
Edit this page
View Source
AnonymousFilters(params Func<QueryContainerDescriptor<T>, QueryContainer>[])
Declaration
public FiltersAggregationDescriptor<T> AnonymousFilters(params Func<QueryContainerDescriptor<T>, QueryContainer>[] selectors)
Parameters
Returns
|
Edit this page
View Source
NamedFilters(Func<NamedFiltersContainerDescriptor<T>, IPromise<INamedFiltersContainer>>)
Declaration
public FiltersAggregationDescriptor<T> NamedFilters(Func<NamedFiltersContainerDescriptor<T>, IPromise<INamedFiltersContainer>> selector)
Parameters
Returns
|
Edit this page
View Source
OtherBucket(bool?)
Adds a bucket to the response which will contain all documents
that do not match any of the given filters.
When set to true, the other bucket will be returned either in a bucket
(named "other" by default) if named filters are being used,
or as the last bucket if anonymous filters are being used
When set to false, does not compute
the other bucket.
Declaration
public FiltersAggregationDescriptor<T> OtherBucket(bool? otherBucket = true)
Parameters
| Type |
Name |
Description |
| bool? |
otherBucket |
whether to set the other bucket
|
Returns
|
Edit this page
View Source
OtherBucketKey(string)
Sets the key for the other bucket to a value other than the default "other".
Setting this parameter will implicitly set the OtherBucket(bool?) parameter to true
Declaration
public FiltersAggregationDescriptor<T> OtherBucketKey(string otherBucketKey)
Parameters
| Type |
Name |
Description |
| string |
otherBucketKey |
the name for the other bucket
|
Returns
Implements
Extension Methods