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

  

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM