Type to search.

Aggregation

map string to Aggregation

This type represents a dictionary mapping string keys to Aggregation values.

Properties

aggregations map string to Aggregation

Sub-aggregations for this aggregation. Only applies to bucket aggregations.

meta object
filter {} Query

A single bucket aggregation that narrows the set of documents to those that match a query.

global object

Defines a single bucket of all the documents within the search execution context. This context is defined by the indices and the document types you’re searching on, but is not influenced by the search query itself.

moving_avg union oneOf
One of: (determined by model)
model: linear
model enum required
Values: linear
buckets_path union oneOf

Path to the buckets that contain one set of values to correlate.

One of: string[] or string or string to string
format string

DecimalFormat pattern for the output value. If specified, the formatted value is returned in the aggregation’s value_as_string property.

gap_policy enum · default: skip

Policy to apply when gaps are found in the data.

Supported values include:

  • skip: Treats missing data as if the bucket does not exist. It will skip the bucket and continue calculating using the next available value.
  • insert_zeros: Replace missing values with a zero (0) and pipeline aggregation computation will proceed as normal.
  • keep_values: Similar to skip, except if the metric provides a non-null, non-NaN value this value is used, otherwise the empty bucket is skipped.
Values: skip insert_zeros keep_values
minimize boolean
predict number
window number
settings object required