删除文档#
通过指定文档的 /index/type/id
路径可以删除文档:
<?php
$params = [
'index' => 'my_index',
'type' => 'my_type',
'id' => 'my_id'
];
// Delete doc at /my_index/my_type/my_id
$response = $client->delete($params);
最后更新: 2018年7月31日 21:17:34
通过指定文档的 /index/type/id
路径可以删除文档:
<?php
$params = [
'index' => 'my_index',
'type' => 'my_type',
'id' => 'my_id'
];
// Delete doc at /my_index/my_type/my_id
$response = $client->delete($params);