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"}}
                }
            }
        }
    }
}

  

 

posted @ 2018-04-22 19:50  亲爱的阿道君  阅读(2913)  评论(0编辑  收藏  举报