Class FiltersAggregation
Inheritance
FiltersAggregation
Assembly: OpenSearch.Client.dll
Syntax
public class FiltersAggregation : BucketAggregationBase, IFiltersAggregation, IBucketAggregation, IAggregation
Constructors
|
Edit this page
View Source
FiltersAggregation(string)
Declaration
public FiltersAggregation(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Properties
|
Edit this page
View Source
Filters
Declaration
public Union<INamedFiltersContainer, IEnumerable<QueryContainer>> Filters { get; set; }
Property Value
|
Edit this page
View Source
OtherBucket
Gets or sets whether to add 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 bool? OtherBucket { get; set; }
Property Value
|
Edit this page
View Source
OtherBucketKey
Gets or sets the key for the other bucket to a value other than the default "other".
Setting this parameter will implicitly set the OtherBucket parameter to true
Declaration
public string OtherBucketKey { get; set; }
Property Value
Implements
Extension Methods