October 2019
Beginner
186 pages
5h 39m
English
This is a parent pipeline type aggregation that executes a script. The script can be performed on each bucket, on specified metrics in the parent multi-bucket aggregation. It has the following syntax:
{ "bucket_script": { "buckets_path": { "my_var1": "the_sum", "my_var2": "the_value_count" }, "script": "params.my_var1 / params.my_var2" }}
It takes the following parameters:
Read now
Unlock full access