es bulk 批量删除
bulk
[root@hadoop2 ~]# cat bulk.del.es.json
{"delete":{"_index":"direct_vote","_type":"kwaddress","_id":"b2b.88152.com/show-3005770.html"}}
{"delete":{"_index":"direct_vote","_type":"kwaddress","_id":"b2b.88152.com/show-3005770.html"}}
{"delete":{"_index":"direct_vote","_type":"kwaddress","_id":"b2b.88152.com/show-3005770.html"}}
{"delete":{"_index":"direct_vote","_type":"kwaddress","_id":"b2b.88152.com/show-3005770.html"}}
{"delete":{"_index":"direct_vote","_type":"kwaddress","_id":"b2b.88152.com/show-3005770.html"}}
{"delete":{"_index":"direct_vote","_type":"kwaddress","_id":"b2b.88152.com/show-3005775.html"}}
{"delete":{"_index":"direct_vote","_type":"kwaddress","_id":"b2b.88152.com/show-3005760.html"}}
[root@hadoop2 ~]#
[root@hadoop2 ~]# curl -XPOST hadoop2:9200/_bulk --data-binary @bulk.del.es.json
{"took":43,"errors":false,"items":[{"delete":{"_index":"direct_vote","_type":"kwaddress","_id":"b2b.88152.com/show-3005770.html","_version":1,"_shards":{"total":2,"successful":1,"failed":0},"status":404,"found":false}},{"delete":{"_index":"direct_vote","_type":"kwaddress","_id":"b2b.88152.com/show-3005770.html","_version":2,"_shards":{"total":2,"successful":1,"failed":0},"status":404,"found":false}},{"delete":{"_index":"direct_vote","_type":"kwaddress","_id":"b2b.88152.com/show-3005770.html","_version":3,"_shards":{"total":2,"successful":1,"failed":0},"status":404,"found":false}},{"delete":{"_index":"direct_vote","_type":"kwaddress","_id":"b2b.88152.com/show-3005770.html","_version":4,"_shards":{"total":2,"successful":1,"failed":0},"status":404,"found":false}},{"delete":{"_index":"direct_vote","_type":"kwaddress","_id":"b2b.88152.com/show-3005770.html","_version":5,"_shards":{"total":2,"successful":1,"failed":0},"status":404,"found":false}},{"delete":{"_index":"direct_vote","_type":"kwaddress","_id":"b2b.88152.com/show-3005775.html","_version":2,"_shards":{"total":2,"successful":1,"failed":0},"status":200,"found":true}},{"delete":{"_index":"direct_vote","_type":"kwaddress","_id":"b2b.88152.com/show-3005760.html","_version":2,"_shards":{"total":2,"successful":1,"failed":0},"status":200,"found":true}}]}[root@hadoop2 ~]#
[root@hadoop2 ~]#
最新文章
- 不可或缺 Windows Native (11) - C++: hello c++, C++ 与 C语言的区别小介
- 【leetcode❤python】237. Delete Node in a Linked List
- Latex 编译错误: ! pdfTeX error (ext4): \pdfendlink ended up in different nesting level than \pd fstartlink. 解决方法
- yum添加网易和搜狐源
- JS常用的7中跨域方式总结
- Delphi XE中类成员的访问权限(新增了strict private和strict protected,还有automated)
- 19个心得 明明白白说Linux下的负载均衡
- Omi框架学习之旅 - Hello World 及原理说明
- MSSQL 备份数据库还原
- [Coci2015]Divljak
- C#核心基础--类的继承
- 【Linux常见问题】SecureCRT 终端连接密钥交换失败错误
- 浅了解:react为何需要设定唯一key值(antd-table)
- C语言冷知识
- 转 PHP5+APACHE2.2配置
- 浅谈 .NET 中的对象引用、非托管指针和托管指针 理解C#中的闭包
- 判断是否是微信浏览器JavaScript代码
- ParentNodes、childNodes、children之间的区别
- ubuntu 16.04安装ceph集群(双节点)
- winSCP连接FTP没有上传的权限
热门文章
- Markdown(github)语法
- sharepoint services
- CSS绝对定位模拟固定定位
- Vue指令6:v-show
- ";ping: unknown host www.baidu.com";问题解决方式
- springmvc学习及源码地址
- UVA - 11536 Smallest Sub-Array(尺取法)
- Error:Cannot find bean: ";org.apache.struts.taglib.html.BEAN"; in any scope
- CentOS7 安装 PHP7.2
- 微信小程序支付全问题解决