2018-09-27 11:41:38 -04:00
|
|
|
[float]
|
2017-08-21 14:44:34 -04:00
|
|
|
[[breaking_70_aggregations_changes]]
|
|
|
|
=== Aggregations changes
|
|
|
|
|
2019-04-08 21:54:29 -04:00
|
|
|
//NOTE: The notable-breaking-changes tagged regions are re-used in the
|
|
|
|
//Installation and Upgrade Guide
|
|
|
|
|
|
|
|
//tag::notable-breaking-changes[]
|
|
|
|
|
|
|
|
// end::notable-breaking-changes[]
|
|
|
|
|
|
|
|
|
2018-09-27 11:41:38 -04:00
|
|
|
[float]
|
2019-05-28 14:16:18 -04:00
|
|
|
[[removed-global-ordinals-hash-and-global-ordinals-low-cardinality-terms-agg]]
|
2017-08-21 14:44:34 -04:00
|
|
|
==== Deprecated `global_ordinals_hash` and `global_ordinals_low_cardinality` execution hints for terms aggregations have been removed
|
|
|
|
|
2017-12-06 03:15:28 -05:00
|
|
|
These `execution_hint` are removed and should be replaced by `global_ordinals`.
|
|
|
|
|
2018-09-27 11:41:38 -04:00
|
|
|
[float]
|
2019-05-28 14:16:18 -04:00
|
|
|
[[search-max-buckets-cluster-setting]]
|
2017-12-06 03:15:28 -05:00
|
|
|
==== `search.max_buckets` in the cluster setting
|
|
|
|
|
|
|
|
The dynamic cluster setting named `search.max_buckets` now defaults
|
|
|
|
to 10,000 (instead of unlimited in the previous version).
|
2018-05-30 06:55:31 -04:00
|
|
|
Requests that try to return more than the limit will fail with an exception.
|
|
|
|
|
2018-09-27 11:41:38 -04:00
|
|
|
[float]
|
2019-05-28 14:16:18 -04:00
|
|
|
[[missing-option-removed-composite-agg]]
|
2018-05-30 06:55:31 -04:00
|
|
|
==== `missing` option of the `composite` aggregation has been removed
|
|
|
|
|
|
|
|
The `missing` option of the `composite` aggregation, deprecated in 6.x,
|
2018-06-25 07:01:33 -04:00
|
|
|
has been removed. `missing_bucket` should be used instead.
|
|
|
|
|
2018-09-27 11:41:38 -04:00
|
|
|
[float]
|
2019-05-28 14:16:18 -04:00
|
|
|
[[replace-params-agg-with-state-context-variable]]
|
2018-06-25 07:01:33 -04:00
|
|
|
==== Replaced `params._agg` with `state` context variable in scripted metric aggregations
|
|
|
|
|
|
|
|
The object used to share aggregation state between the scripts in a Scripted Metric
|
|
|
|
Aggregation is now a variable called `state` available in the script context, rather than
|
|
|
|
being provided via the `params` object as `params._agg`.
|
2018-10-03 10:22:01 -04:00
|
|
|
|
|
|
|
[float]
|
2019-05-28 14:16:18 -04:00
|
|
|
[[reduce-script-combine-script-params-mandatory]]
|
2018-10-03 10:22:01 -04:00
|
|
|
==== Make metric aggregation script parameters `reduce_script` and `combine_script` mandatory
|
|
|
|
|
|
|
|
The metric aggregation has been changed to require these two script parameters to ensure users are
|
|
|
|
explicitly defining how their data is processed.
|
2019-03-12 03:10:18 -04:00
|
|
|
|
|
|
|
[float]
|
2019-05-28 14:16:18 -04:00
|
|
|
[[percentiles-percentile-ranks-return-null-instead-nan]]
|
2019-03-12 03:10:18 -04:00
|
|
|
==== `percentiles` and `percentile_ranks` now return `null` instead of `NaN`
|
|
|
|
|
|
|
|
The `percentiles` and `percentile_ranks` aggregations used to return `NaN` in
|
|
|
|
the response if they were applied to an empty set of values. Because `NaN` is
|
|
|
|
not officially supported by JSON, it has been replaced with `null`.
|
2019-04-10 09:41:04 -04:00
|
|
|
|
|
|
|
[float]
|
2019-05-28 14:16:18 -04:00
|
|
|
[[stats-extended-stats-return-zero-instead-null]]
|
2019-04-10 09:41:04 -04:00
|
|
|
==== `stats` and `extended_stats` now return 0 instead of `null` for zero docs
|
|
|
|
|
|
|
|
When the `stats` and `extended_stats` aggregations collected zero docs (`doc_count: 0`),
|
|
|
|
their value would be `null`. This was in contrast with the `sum` aggregation which
|
|
|
|
would return `0`. The `stats` and `extended_stats` aggs are now consistent with
|
|
|
|
`sum` and also return zero.
|