ES给已有索引增加新文档,更新字段值

ES给已有索引增加新文档.。

也可以给已有文档添加字段

PUT myindex/_mapping/mytype
{
"properties": {
"field1": { "type": "keyword"},
"field2": { "type": "keyword"},

"HUMIDITY": {

"type": "object",
"enabled": false
}


}
}

 

更新字段值

POST /cq-es-hr-item/ESTHrItem/AAA01654|1/_update
{
"doc" : {
"SPNID" : 93
}
}

posted on 2017-12-29 10:52  zhangfeitaimengle  阅读(6102)  评论(0编辑  收藏  举报

导航