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