Elasticsearch 2.3 Delete all documents in a type by query using PHP LIbrary
问题 I want to be able to delete documents by query using the elasticsearch php library. I actually ideally want to delete all documents in my type. I can achieve this using a normal curl XDELETE request in sense, however I cant get it to work using elastic search's PHP library. Yes I have installed the delete-by-query plugin hence why raw request works. my current code: $params = [ 'index' => 'sanctions_lists', 'type' => $listName, 'body' => [ 'query' => [ 'match_all' => [] ] ] ]; return $this-