ES新增字段

Elasticsearch中的mapping一旦创建,就不能再修改。随着业务的的发展。我们经常会遇到新增字段。很简单。


ES新增字段


/索引/_mapping/类型



{
    "customer": { //类型
        "properties": {
            "submit_channels": { //新增字段
                "type": "string",
                "index": "not_analyzed"
            }
        }
    }
}