https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline.html


형제 파이프 라인 집계 

  • avg 버킷 집계
  • max 버킷 집계
  • min 버킷 집계
  • sum 버킷 집계
  • stats 버킷 집계
  • extended stats 버킷 집계
  • percentile 버킷 집계
  • moving average  집계

부모 파이프 라인 집계 

  • derivative 집계
  • cumulative 합계
  • bucket script 집계
  • bucket selector 집계
  • serial differencing 집계

파이프 라인 집계는 하위 집계를 지원하지 않지만 bucket_path 매개 변수를 사용하는 집계 체인을 지원하기 때문에 파이프 라인 집계 체인에서 최종 출력은 체인의 각 집계 출력이 포함된다. bucket_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)>
PATH                =  <AGG_NAME> [ <AGG_SEPARATOR>, <AGG_NAME> ]* [ <METRIC_SEPARATOR>, <METRIC> ]


예를 들어 "buckets_path": "AGG_NAME>METRIC"은 bucket_path는 집계와 해당 집계의 메트릭을 참조함을 알려준다.


https://www.elastic.co/guide/en/elasticsearch/reference/master/search-aggregations-matrix-stats-aggregation.html

Posted by '김용환'
,