elasticsearch 查询删除文档

来源:互联网 发布:软件项目工作量统计表 编辑:程序博客网 时间:2024/06/08 06:09
先安装查询删除插件
Installation
This plugin can be installed using the plugin manager:
sudo bin/plugin install delete-by-query
The plugin must be installed on every node in the cluster, and each node must be restarted after installation.
Removal
The plugin can be removed with the following command:
sudo bin/plugin remove delete-by-query
The node must be stopped before removing the plugin.

curl -XDELETE '127.0.0.1:9200/type/index/_query?pretty' -d '
{
"query": { "match_all": {} }
}'
0 0
原创粉丝点击