I don't know why but today all my documents get deleted with this request. I have a staging server with the same data and everything is OK. I don<t know if there is a safer way to delete data. I run that request every 10 minutes and it delete about 200 documents each time. But today this request delete over 1Million documents.
Thanks for your answer. This request is called in a cronjob and never done manually. I can't use time base indices because some documents will live forever in ES. (new developments ). I just one to find a more secure way to delete documents.
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.