Query1 - deleteByquery which includes deletion of doc A
Query2 - index query on doc A (with refresh=true so that change will be immediately available)
ES Doc says that the deleteByQuery will take a snapshot of index and perform deletion on top of it.
I understand that If indexing of A happens after the snapshot has been taken for deleteByQuery, I will have version conflicts in my response.
Is there a possibility that the indexing happens before the snapshot being taken, and it gets deleted as a part for deleteByQuery even though the Query1 request was made before Query2?
i.e When I get a response for deleteByQuery (with refresh=false) can i be sure that the snapshot for deletion is taken and no further changes will be included in the deletion?