Elasticsearch: querying on both nested object properties and parent properties
I have some documents which have nested objects inside nested objects : { "started_at": 1455088063966, "ended_at": 1455088131966, "tags": [{ "type": "transfer", "at": 1455088064462, "events": [{ "type": "transfer_processed", "at": 1455088131981 }] }, { "at": 1455088138232, "item": "tag", "type": "info" }] } Here, the main document has several nested objects (the tags), and for each tag there are several nested objects (the events). I would like to get all the documents where the events of type transfer_processed occured 60000 milliseconds after the tags of type transfer . For this, I would