Can I use previous aggregation key in a script?

I have a chain of Bucketing Aggregations. Inside I want to apply a Filter Aggregation having the must bool condition defined by a script.

The filter condition should depend on the value of one bucket key from the chain.

Is it possible to define a script parameter that holds the key of a parent aggregation?

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