October 2019
Beginner
186 pages
5h 39m
English
This parent pipeline aggregation executes a script that decides whether a bucket will stay in the parent multi-bucket aggregation. It has the following syntax:
{ "bucket_selector": { "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