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 ~]#

es bulk 批量删除的更多相关文章

  1. Elasticsearch由浅入深(六)批量操作:mget批量查询、bulk批量增删改、路由原理、增删改内部原理、document查询内部原理、bulk api的奇特json格式

    mget批量查询 批量查询的好处就是一条一条的查询,比如说要查询100条数据,那么就要发送100次网络请求,这个开销还是很大的如果进行批量查询的话,查询100条数据,就只要发送1次网络请求,网络请求的 ...

  2. hibernate批量删除和更新数据

    转载自:http://blog.csdn.net/yuhua3272004/article/details/2909538 Hibernate3.0 採用新的基于ANTLR的HQL/SQL查询翻译器, ...

  3. Dynamics 365中的批量删除作业执行频率可以高于每天一次吗?

    微软动态CRM专家罗勇 ,回复317或者20190314可方便获取本文,同时可以在第一间得到我发布的最新博文信息,follow me!我的网站是 www.luoyong.me . 我先来做一个例子,登 ...

  4. ELK批量删除索引 及 相关操作命令 - 运维小结

    线上部署了ELK+Redis日志分析平台环境, 随着各类日志数据源源不断的收集, 发现过了一段时间之后, ELK查看会原来越慢, 重启elasticsearch服务器节点之前同步时间也会很长,  这是 ...

  5. php-elasticsearch bulk批量插入数据

    1.单条插入 <?php include '../vendor/Elasticsearch/autoload.php'; $a['hosts'] = array( #需要用户名时 http:// ...

  6. php批量删除

    php批量删除可以实现多条或者全部数据一起删除 新建php文件 显示数据库中内容: <table width="100%" border="1" cell ...

  7. Elasticsearch —— bulk批量导入数据

    在使用Elasticsearch的时候,一定会遇到这种场景--希望批量的导入数据,而不是一条一条的手动导入.那么此时,就一定会需要bulk命令! 更多内容参考我整理的Elk教程 bulk批量导入 批量 ...

  8. confirm对话框取消后阻止ajax操作、ajax做批量删除

    在做批量删除的时候,需要用confirm弹出一个提示框让用户确认是否删除,点击确定,执行操作,点击取消,取消操作.但是如果使用ajax把选中项的主键值传到处理页面处理时,如果使用下面的方法将confi ...

  9. mybatis批量删除提示类型错误

    一. 这里主要考虑两种参数类型:数组或者集合. 而这点区别主要体现在EmpMapper.xml文件中标签的collection属性: 当collection="array"时,表名 ...

随机推荐

  1. HDU_1879_继续畅通工程

    继续畅通工程 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Subm ...

  2. Microsoft Access Engine

    在64位Win7操作系统中安装Microsoft Access Engine的解决方案 原创 2014年01月06日 19:33:56 44847 现在的Win7系统中安装的一般都是32位的Offic ...

  3. 01C++编辑编译运行环境

    C++编辑编译运行环境 Bloodshed Dev-C++ Microsoft Visual Studio

  4. java8 foreach不能使用break、countinue

    在学习1.8新特性的过程中,发现foreach中不可以使用break和countinue,然后我使用了return,结果如下图,对循环并没有影响. 百度一下,发现了一个不一样的回答 然后我就看了下源码 ...

  5. CCF201612-1 中间数 java(100分)

    试题编号: 201612-1 试题名称: 中间数 时间限制: 1.0s 内存限制: 256.0MB 问题描述: 问题描述 在一个整数序列a1, a2, …, an中,如果存在某个数,大于它的整数数量等 ...

  6. PAT 1145 Hashing - Average Search Time

    The task of this problem is simple: insert a sequence of distinct positive integers into a hash tabl ...

  7. Spring AOP学习(六)

    <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.sp ...

  8. windows下通过navicat for mysql连接centos6.3-64bit下的MySQL数据库

    一.centos下MySQL安装 按照命令依次安装以下文件: mysql-devel 开发用到的库以及包含文件 mysql mysql 客户端 mysql-server 数据库服务器 yum inst ...

  9. MTK平台系统稳定性分析

    目录 1:简介 2:怎么抓取和分析log 3:怎么确定问题点 简介 系统稳定性目前主要是解决系统死机重启. 分为两部分:Android /kernel Kernel 分析需要的文件和工具: Mtklo ...

  10. B树、B-树、B+树、B*树介绍,和B+树更适合做文件索引的原因

    今天看数据库,书中提到:由于索引是采用 B 树结构存储的,所以对应的索引项并不会被删除,经过一段时间的增删改操作后,数据库中就会出现大量的存储碎片, 这和磁盘碎片.内存碎片产生原理是类似的,这些存储碎 ...