我想用1次查询更新特定索引和类型下的所有ID。我试着调查_bulk和_update但是找不到确切的方法。有人可以指示我应该用什么电话来更新所有ID的新密钥值的json。
Previous JSON:
{ "_index": "ABC",
"_type": "EFG",
"_id": "000014484",
"_score": 1,
"_source": {
"file_attachment__name__s": null,
"file_attachment__contenttype__s": null
}
}
Intended JSON with every ID's:
{ "_index": "ABC",
"_type": "EFG",
"_id": "000014484",
"_score": 1,
"_source": {
"file_attachment__name__s": null,
"file_attachment__contenttype__s": null,
"cat" : "yes"
}
}