简体   繁体   中英

ElasticSearch - Difference between Sub-aggregations and pipeline aggregations

Could somebody explain me the difference between sub-aggregations and pipeline aggregations ?

For example: Which is the difference between sum metric aggregation inside a term bucket aggregation and a sum_buckets pipeline aggregation referenced to a term bucket aggregation?

Sub-aggregations operate on individual buckets of the previous level's aggregations, where as pipeline aggregations operate "after" "normal" aggregations. For example Derivative aggregation calculates the derivate of the aggregated value.

Basically sub-aggregations are done in the context of an aggregations' bucket, but pipeline aggregations are calculated across buckets (after their values have been computed).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM