Using a bucket key for filtering in the according aggregation

Hello,

maybe I searched for the wrong things, but I have a problem and don't know if it is possible to solve it: I have a terms aggregation where I need to filter the documents by matching the bucket keys against an input.

Here: Access to the date_histogram buckets key to the next level aggregation or bucket_script · Issue #56392 · elastic/elasticsearch · GitHub they say it's not possible to use data from an outer aggregation within an inner aggregation.

But is it possible to use the bucket key for a filter in the same aggregation?

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