Do you know how I can delete document in one curl command ?
I have a index called "myindex". I want to delete all document where the field prediction is like "yes"
The syntax you have was for ES 2.4. With ES 5 the delete by query API endpoint has changed name, from _query to _delete_by_query, so this should work (also make sure to use the POST method and not DELETE):
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.