Retain buckets missing a specific value

Hey there,
is it possible to retain only those buckets of an aggregation, which don't have any document that has a field with the specific value "xyz"?

To be more precise:
My documents are events, whose type is specified in the field eventType.
Events with the same transaction ID make up one transaction. I would like to list all transactions which don't have any event of eventType "FinalizingEvent".

Bucket Selector Aggregation looked promising at first, but filtering seems to be possible only on field level, not on value level.

I appreciate any kind of help.

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