https://www.elastic.co/guide/en/elasticsearch/reference/7.6/search-aggregations-pipeline.html
파이프라인 집계는 다른 집계와 달리 '다른 집계'의 결과물로 생성된 버킷을 참조해서 집계를 수행한다. 파이프라인에는 부모(Parent)와 형제(Sibling) 두가지 유형이 있다.
파이프라인 집계를 수행할때는 buckets_path 파라미터를 사용하여 참조할 집계의 경로를 지정하여 체인 형식으로 집계간 연산을 수행한다.
AGG_SEPARATOR = `>` ;
METRIC_SEPARATOR = `.` ;
AGG_NAME = <the name of the aggregation> ;
METRIC = <the name of the metric (in case of multi-value metrics aggregation)> ;
MULTIBUCKET_KEY = `[<KEY_NAME>]`
PATH = <AGG_NAME><MULTIBUCKET_KEY>? (<AGG_SEPARATOR>, <AGG_NAME> )* ( <METRIC_SEPARATOR>, <METRIC> ) ;
예를 들어, my_bucket>my_stats.avg는 my_bucket 버킷 집계에 담긴 my_stats 값의 avg 평균값이다.