I want to delete all the records within a timestamp range from a single index. I am running Elasticsearch version 1.7.0 but not able to follow the examples. If anyone can help readily with this, I would be very grateful to you!
Note that using the Delete By Query API was deprecated in 1.5.3 and will be removed in 2.0 for the reasons given there. Using Scan & Scroll to find the ids of the records and then delete them by bulk request is the prefered way now. Also starting in 2.0 there is going to be a plugin that will make this easier, however there are other things to keep in mind when using it decribed here.
Thanks @cbuescher. I will look forward to 2.0. By the way do you know if these plugins will be bundled by default with elasticsearch? The cluster instances are behind firewall hence asking as plugin/install won't work.
No, although the plugins are maven submodules in the repo, they need to be installed indivudually. They usually offer functionality that is not needed by every user.
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.