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