Given the scenario where the index contains documents with ids 1,2,3,4,5,6,7. A user saves document 1, 3, and 7 in their session, and sometime later, document 3 is removed from the index.
What query can I use against the index to know the list of documents that are no longer in the index? I could fire a bulk get, so perform a get on doc with ids [1,3,7] and write custom logic in my code to see which docs didn't return. Is there a method/query that in built in elasticsearch to let me do that?
I'm using elasticsearch version 2.2.0.