GET /a/_search简单更新查询
POST /a/_update_by_query { "query": { "bool": { "must": [{ "term": { "idd": 1 } } ] } }, "script": { "source": "ctx._source['name'] = '张三';ctx._source['ddd'] = 'dfasdf';" } }根据id更新【旧】
POST /a/_doc/1/_update?pretty { "doc": { "name": "Jane Doe", "age": 20 } }版本(7.+ )根据id更新
POST /a/_update/1 { "doc": { "name": "Jane Doe", "age": 22 } }更新
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)