I want to get documents having specific messages and time difference between documents should not be more than 5 mins.
I have documents with messages "abc" and "xyz" in any index.
Now I want to get all documents having message "abc" OR "xyz" AND time difference between these documents should not be more than 5 mins.
I have researched on this but did not find elastic search query to get such documents. Could you please help me with this ?