How to perform a pipeline aggregation without returning all buckets in Elasticsearch
问题 I'm using Elasticsearch 2.3 and I'm trying to perform a two-step computation using a pipeline aggregation. I'm only interested in the final result of my pipeline aggregation but Elasticsearch returns all the buckets information. Since I have a huge number of buckets (tens or hundreds of millions), this is prohibitive. Unfortunately, I cannot find a way to tell Es not to return all this information. Here is a toy example. I have an index test-index with a document type obj . obj has two fields