Hello. I have following documents:
- group:groupid1 status:passed message:somemessage
- group:groupid1 message:somemessage2
- group:groupid2 message:somemessage
- group:groupid1 message:somemessage3
I would like to get all documents which contains status:passed in their "group". So in this case #1, #2 and #4.
Probably I will also need to get all documents with no "status" field where there is some document in their group which contains status:passed. So #2 and #4 in this case.
Is it possible to make these ES queries? How?