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