一、根据id进行单条信息更新
http://192.168.10.32:9200/
lawfield_test/_doc/21411773/_update post
{
"doc": {
"isZnzs": 1
}
}
解析:
ip
index/type/id/_update post
request_body
二、根据特定条件批量更新数据
http://192.168.10.32:9200/
lawfield_test/_doc/_update_by_query post
{
"query": {
"term": {
"libfrom": "智能后台",
"isDelete": 0
}
},
"script": {
"inline": "ctx._source['noteNum'] = 0;ctx._source['tableType'] = 'none';ctx._source['gtype'] = '';ctx._source['checkStatus'] = '待处理'"
}
}