The changes related to aggregation are as follows:
- The execution hints (global_ordinals_hash and global_ordinals_low_cardinality) for the term aggregations are eliminated.
- The max limit of buckets allowed in a single response for bucket aggregations is controlled by the search.max_buckets cluster setting, with the default value of 10,000. An attempt to return a request that exceeds the limit will fail with an exception.
- You should use the missing_bucket option instead of the missing
of the parameter sources in the composite aggregation to include documents that have no value in the response. The deprecated missing option is eliminated.
- The params._agg script parameter, or params._aggs in the scripted metric aggregation, ...