ElasticSearch Query containing equal and not equal

Hi,

Is there a way to use equal and not equal in a query for Elasticsearch? My data looks something like this:

ID = 2
FLAG = ""Start"
Date = 2022-08-08
Data = <>
ID = 2
FLAG = "End"
Date = 2022-08-08
Data = <>
ID = 4
FLAG = ""Start"
Date = 2022-08-08
Data = <>

There is no "End" transaction for ID 4 and I want to fetch only such batches (batch with ID 4 only) for which I have only Start transaction.

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