Java High Level REST Client 怎么解决index_not_found_exception

在elasticsearch 中,我们可以通过设置ignore_unavailable=true防止报空索引异常,但是在Java High Level REST Client中怎么解决?我看了下文档,貌似没有提供响应的方法,求救~~~~~~~~~~~~~~~~~~

找到了。
//ignore_unavailable allow_no_indices=true expand_wildcards_open expand_wildcards_closed
searchRequest.indicesOptions(searchRequest.indicesOptions().fromOptions(true, true, true, false));

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.