elasticsearch postman操作
Posted 亲爱的阿道君
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了elasticsearch postman操作相关的知识,希望对你有一定的参考价值。
1. 新建索引 school
2. 删除索引 school
3. 新建类型
根据条件批量更新
根据条件批量删除
Null 处理
http://localhost:9200/school/person/_search
{ "query" : { "constant_score" : { "filter" : { "bool": { "must": {"exists": {"field": "crmNo"}} } } } } }
不为Null 处理
http://localhost:9200/school/person/_search
{ "query" : { "constant_score" : { "filter" : { "bool": { "must_not": {"exists": {"field": "name"}} } } } } }
以上是关于elasticsearch postman操作的主要内容,如果未能解决你的问题,请参考以下文章
Elasticsearch系列——使用kibana或postman操作Elasticsearch的常用命令