Since "Delete by Query" has been deprecated as a method to delete documents, I want to implement the work around to use scan/scroll API and Bulk Delete request.
Can Someone help me with an example, as I am not sure how to use scroll_id, returned by my search, in bulk delete request (or) there will be multiple bulk delete requests.
Thanks for the reply, The plugin would indeed come in very handy, but I am in need for this operation at present and the plugin would be compatible with elasticsearch 2.0,for now, I would need help in executing delete requests using scan/scroll API.
Reviving this old thread. The plugin seems to not be available anymore. I want to delete all documents of a type and would like to implement it using scroll API and bulk delete. Could someone please help me with an example of how I could achieve this? Is there is a better alternative to do the same?
My bad! I am using version 2.3 of ES and I could install and use the plugin. Just the link mentioned in the previous post was incorrect. Here is the right link :
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.