Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/311.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 全文搜索删除索引重试?_Java_Google App Engine - Fatal编程技术网

Java 全文搜索删除索引重试?

Java 全文搜索删除索引重试?,java,google-app-engine,Java,Google App Engine,执行index()时没有状态码返回。是否删除(…)?但是index()没有返回状态代码。add(..)。如果删除(..)失败,则无需重试?索引。如果出现问题,删除()应引发异常。具体而言(从删除方法文档中): 对于java,如何捕获异常?很抱歉,您的问题是针对java的。在这种情况下,您将捕获RemoveException( "Raises: RemoveError: If one or more documents failed to remove or number remove

执行index()时没有状态码返回。是否删除(…)?但是index()没有返回状态代码。add(..)。如果删除(..)失败,则无需重试?

索引。如果出现问题,删除()应引发异常。具体而言(从
删除
方法文档中):


对于java,如何捕获异常?很抱歉,您的问题是针对java的。在这种情况下,您将捕获RemoveException(
"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."