博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
elasticsearch 常用查询 + 删除索引
阅读量:4323 次
发布时间:2019-06-06

本文共 1181 字,大约阅读时间需要 3 分钟。

1.多条件查询

curl -X POST \  http://10.0.0.42:9200/addressbook_user/_search \  -H 'cache-control: no-cache' \  -H 'content-type: application/json' \  -d '{
"query": { "bool": { "must": [ { "term": { "orgId": { "value": "0db8574bb127466ab03be74ac74235da", "boost": 1 } } }, { "term": { "userId": { "value": "fa3058d8398a455304a3b8e439e29fdd", "boost": 1 } } } ], "adjust_pure_negative": true, "boost": 1 } }}'curl -X POST \ http://10.0.0.35:9200/addressbook_user/_search \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -d '{
"query": { "match": { "userId": "8ad37acb7860e3729c964699287de46e" } }}'

 2.删除索引

curl -XDELETE http://10.0.0.7:9200/wxqyh180867134-2019.09.16

转载于:https://www.cnblogs.com/hixiaowei/p/11543853.html

你可能感兴趣的文章
1040 有几个PAT
查看>>
BZOJ 1412 [ZJOI2009]狼和羊的故事 | 网络流
查看>>
原型模式
查看>>
Hadoop RPC源码阅读-交互协议
查看>>
WASAPI、DirectSound/DS、WaveOut、Kernel Streaming/KS
查看>>
Perl按行分割文件
查看>>
根据现有表操作基于active record的model
查看>>
NotMapped属性特性
查看>>
Count and Say
查看>>
GridView数据导入Excel/Excel数据读入GridView
查看>>
566. Reshape the Matrix
查看>>
python数据结构与算法之搜索
查看>>
(最小点覆盖) poj 2226
查看>>
(树形DP) poj 3659
查看>>
获取类的属性名和值
查看>>
python对json的操作总结
查看>>
学习进度表第十一周
查看>>
js屏蔽回车键
查看>>
Memcached通用类(基于enyim.com Memcached Client)
查看>>
c#组元(Tuple)的使用
查看>>