easy-es icon indicating copy to clipboard operation
easy-es copied to clipboard

修改指定字段

Open weilingfeng98 opened this issue 2 years ago • 1 comments

es原生是支持修改单个字段的,请问easy-es怎么实现修改指定字段

weilingfeng98 avatar Aug 04 '23 10:08 weilingfeng98

ES原生是这样修改的: POST /index_name/_update_by_query { "query": { "bool": { "must": [ { "term": { "id": "20132112534" } } ] } }, "script": { "ctx._source['name'] = 'wb'" } }

weilingfeng98 avatar Aug 04 '23 10:08 weilingfeng98