Anchor | ||||
---|---|---|---|---|
|
Property | Description | Default | Type | Required |
---|---|---|---|---|
type | Aggregation type | string | Yes | |
field | Name of the field from which the values will be aggregated | string | Yes | |
negated | Negates the filter | false | boolean | No |
must | Indicates if the filter must be enforced alongside other filters, or if it can be omitted if it doesn't match (acts as a should) | true | boolean | No |
post_search | Is filter multiselect? Warning: for multiselect filter, the process is done post search | false | boolean | No |
id | Name for which to identify the aggregation done | string (pattern: \w) | Yes | |
or_selection | Indicates the behavior between 2 selections of the same aggregation. If true, selections will be treated as "or" (e.g., A or B). If false, they will be treated as "and" (e.g., A and B) | true | boolean | No |
ui_only | Section dedicated for UI transformation options only. Not required for regular aggregation process | object | No | |
aggs | Nested Aggregations. Define a list of nested aggregations | array | No |
Info |
---|
The type property should be one of the following values: "term", "bool", "date_histogram", "histogram", "browse", "date_range", "range", "slider", "top_hits", or "filter". |