You are looking at community translated documentation. See the current release documentation in English for the most up to date content.
删除文档
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
删除文档
edit通过指定文档的 /index/type/id 路径可以删除文档:
$params = [
'index' => 'my_index',
'type' => 'my_type',
'id' => 'my_id'
];
// Delete doc at /my_index/my_type/my_id
$response = $client->delete($params);