curl -X POST "localhost:9200/my-index/_update_by_query" -H 'Content-Type: application/json' -d'{"script": {"source": "ctx._source.field = "new value""}, "query": {"bool": {"must": [{"match": {"field1": "value1"}}, {"match": {"field2": "value2"}}]}}}'

Elasticsearch Script 更新数据:使用 Curl 命令 (无需读取文件)

原文地址: https://www.cveoy.top/t/topic/pVFM 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录