gpt4 book ai didi

java - 全文搜索删除索引重试?

转载 作者:行者123 更新时间:2023-12-01 15:22:13 26 4
gpt4 key购买 nike

执行index().remove(..)时没有状态码返回?但有状态代码返回index().add(..)。如果remove(..)失败,不需要重试吗?

最佳答案

如果出现问题,

Index.remove() 应该抛出异常。具体来说(来自 remove 方法文档):

"Raises:
RemoveError: If one or more documents failed to remove or
number removed did not match requested.
ValueError: If document_ids is not a string or iterable of valid document
identifiers or number of document ids is larger than
_MAXIMUM_DOCS_PER_REQUEST."

关于java - 全文搜索删除索引重试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10737386/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com