Pipeline cumulative aggregation just works for Histogram

Hi,
I want to use CumulativeSumAggregation but as it is a Parent pipelineAggregation just accept DateHistogram or Histogram as a parent.

In my case, I have a DateHistogram on the top but in the second level I have a term Aggregation and after that, I have the pipeline.

-- DateHistogram
-- Terms Aggregation
-- sum Aggregation
-- pipelineCumulativeSum

I can use Histogram Aggregation instead of Terms Aggregation but the problem is, it creates a lot of empty buckets (because of the interval). Is there any way to add some more data to the first level Aggregation (DateHistogram) documents and in the second level just make aggregation based on that additional data?

Thanks in advance

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.