Required Elastic Query with having Clause in Aggregation

If Have One index having records with Properties Email and Event
We have different Events like Submitted, Delivered,Bounce etc.
I want to Get those record that available in Submitted only.
Means If any Email has to delivered or Bounce then it's not shows in the result.
Email Event Delivered Submitted Submitted
If these are the record available in the index then It return on because it has only Submitted Record.

Hi @Sunny_Gupta

The Term Query can be used to filter docs with event type Submitted.

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