删除API

删除api允许你通过id,从特定的索引中删除类型化的JSON文档。如下例:

DeleteResponse response = client.prepareDelete("twitter", "tweet", "1")
.execute()
.actionGet();

操作线程

The get API allows to set the threading model the operation will be performed when the actual execution of the API is performed on the same node (the API is executed on a shard that is allocated on the same server).

默认情况下,operationThreaded设置为true表示操作执行在不同的线程上面。下面是一个设置为false的例子。

DeleteResponse response = client.prepareDelete("twitter", "tweet", "1")
.setOperationThreaded(false)
.execute()
.actionGet();

最新文章

  1. Android之三种网络请求解析数据(最佳案例)
  2. unison+inotify
  3. ReactNative新手学习之路04 组件化开发轮播图swiper支持安卓和IOS
  4. 鸟哥linux私房菜基础篇
  5. logistic公式形式的由来,从广义线性回归说起
  6. 【Android学习】数据传递三种方式
  7. [转]Windows网络编程学习-面向连接的编程方式
  8. android studio 打开github开源代码
  9. VC2010对Excel的操作
  10. 用正则表达式抓取网页中的ul 和 li标签中最终的值!
  11. struts2中的文件上传,文件下载
  12. [51nod1197]字符串的数量 V2
  13. 利用Cglib实现AOP
  14. 【BZOJ 1002】: [FJOI2007]轮状病毒
  15. JavaScript Node节点笔记
  16. JavaScript面向对象编程指南(三) 函数
  17. 地图标绘系统V1.0测试版【申明:来源于网络】
  18. web(八)CSS选择器
  19. J - FatMouse's Speed dp
  20. linux top命令查看内存及多核CPU的使用讲述【转】

热门文章

  1. 搜索框下面显示提示数据(数据是ajax读取)
  2. Web安全之Web 安全介绍与基础入门知识
  3. CSS动画库——animate.css的使用
  4. windows 嵌入控制台
  5. LUOGU P3161 [CQOI2012]模拟工厂 (贪心)
  6. 20175323《Java程序设计》第四周学习总结
  7. Spark 读写数据、抽象转换 拾遗
  8. PAT甲级——A1127 ZigZagging on a Tree【30】
  9. Java 12 正式发布,8大新特性!
  10. Java开发系列-JDBC