本文整理了Java中org.elasticsearch.client.RestHighLevelClient.msearchAsync
方法的一些代码示例,展示了RestHighLevelClient.msearchAsync
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RestHighLevelClient.msearchAsync
方法的具体详情如下:
包路径:org.elasticsearch.client.RestHighLevelClient
类名称:RestHighLevelClient
方法名:msearchAsync
[英]Asynchronously executes a multi search using the msearch API. See Multi search API on elastic.co
[中]使用msearch API异步执行多重搜索。见Multi search API on elastic.co
代码示例来源:origin: org.elasticsearch.client/elasticsearch-rest-high-level-client
/**
* Asynchronously executes a multi search using the msearch API.
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html">Multi search API on
* elastic.co</a>
* @param searchRequest the request
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
* @param listener the listener to be notified upon request completion
* @deprecated use {@link #msearchAsync(MultiSearchRequest, RequestOptions, ActionListener)} instead
*/
@Deprecated
public final void multiSearchAsync(MultiSearchRequest searchRequest, RequestOptions options,
ActionListener<MultiSearchResponse> listener) {
msearchAsync(searchRequest, options, listener);
}
代码示例来源:origin: io.reactiverse/elasticsearch-client
@Override()
public void msearchAsync(MultiSearchRequest searchRequest, RequestOptions options, Handler<AsyncResult<MultiSearchResponse>> handler) {
Context context = vertx.getOrCreateContext();
delegate.msearchAsync(searchRequest, options, new ActionListener<MultiSearchResponse>() {
@Override
public void onResponse(MultiSearchResponse value) {
context.runOnContext(v -> handler.handle(Future.succeededFuture(value)));
}
@Override
public void onFailure(Exception e) {
context.runOnContext(v -> handler.handle(Future.failedFuture(e)));
}
});
}
代码示例来源:origin: apache/servicemix-bundles
public final void multiSearchAsync(MultiSearchRequest searchRequest, RequestOptions options,
ActionListener<MultiSearchResponse> listener) {
msearchAsync(searchRequest, options, listener);
内容来源于网络,如有侵权,请联系作者删除!