Delete_by_query and index concurrency


(Grant Rodgers) #1

If I do a delete_by_query request and wait for it to return, then
index some documents that would match the delete query, is it possible
that delete_by_query would delete the new documents as well?

example:
posts/tag delete_by_query "post_id:1"

posts/tag index { "post_id":1, "tag": "awesome" }

posts/tag search "post_id:1"

Is the new document guaranteed to still exist?

Thanks,
Grant


(system) #2