且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

批量向弹性搜索索引中的所有文档添加新字段

更新时间:2022-01-11 22:12:06

是的,批量API支持更新,可以使用部分文档或脚本添加新字段。要遍历您的文档ID,请执行扫描并滚动使用 fields 参数集到一个空数组。

Yes, the bulk API supports updates which can add a new field using a partial document or script. To iterate through your document ids do a scan and scroll with the fields parameter set to an empty array.