Looking at the documentation for _delete_by_query API, there is a parameter called "max_docs". From what i see it was added to documentation in 7.3.
This same parameter is shown on _reindex API documentation and has identical description
max_docs
(Optional, integer) Maximum number of documents to process. Defaults to all documents.
What i don't really understand is, what does this mean in context of _delete_by_query API? Does it mean that that is the max number of documents that will be deleted?
Main reason I'm asking is because I want to add a hard limit to our EsClient of "how many documents it's possible to delete" so that someone doesn't accidentally delete all of the data.
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.