1.  新建索引 school

elasticsearch postman操作

2. 删除索引 school

elasticsearch postman操作

3.   新建类型

 elasticsearch postman操作

 

 

 根据条件批量更新

elasticsearch postman操作

根据条件批量删除

elasticsearch postman操作

 

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

  

 

相关文章:

  • 2021-04-06
  • 2021-07-27
  • 2021-07-16
  • 2021-08-20
  • 2022-12-23
  • 2021-10-01
  • 2021-05-15
  • 2022-01-29
猜你喜欢
  • 2021-10-14
  • 2022-12-23
  • 2021-11-14
  • 2022-01-08
  • 2022-12-23
  • 2021-06-16
  • 2021-08-16
相关资源
相似解决方案