delete_by_query 报ConflictError(4
2021-07-15 本文已影响0人
arrow_zh
Python
# conflicts='proceed' 防止调用次数过多导致409错误 版本冲突问题
result = es.delete_by_query(index=config_instance.get("es", "knowledge_index"), conflicts='proceed', body=query)
Java
deleteByQueryRequest.setAbortOnVersionConflict(false);