I'm trying to use the elasticsearch.js client to bulk delete documents from elasticsearch using the bulk api. The documents get deleted successfully.
However, when I run the same delete request using the same set of elastic ids, I expect to get a 404 response for each of the documents (because my assumption is they were just deleted). But instead, more documents are deleted (I can't really tell which ones). From the response of the callback, I can see that the version number has incremented to 2.
Any help would be appreciated.