在Jest中使用Update.Builder时,是否可以以某种方式设置retry_on_conflict参数?
我正在尝试设置参数,但不知道如何将其添加到我的请求中。
我可以像在更新文档部分的https://github.com/searchbox-io/Jest/tree/master/jest中演示的那样,以某种方式将它添加到“脚本”字段吗?这也行得通。
发布于 2018-04-06 23:03:53
下面是如何做到这一点:
Update update = new Update.Builder(payload)
.index(aliasName)
.type(typeName)
.id(docId)
.setParameter("retry_on_conflict", 5)
.build();https://stackoverflow.com/questions/45227304
复制相似问题