POST crm_knowledge_base/knowledgeBase/17/_update
{
"doc":{
"createBy":"111",
"updateBy":"111",
"userName":"admin",
"updateUserName":"admin"
}
}
更新成功
POST crm_knowledge_base/_update_by_query
{
"script": {
"source": "ctx._source['createBy']='55';ctx._source['userName']='石慧';"
},
"query":{
"bool": {
"must":{
"match":{
"createBy":"10001389"
}
}
}
}
}
更新成功