org.elasticsearch.client.RestHighLevelClient.scroll()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(307)

本文整理了Java中org.elasticsearch.client.RestHighLevelClient.scroll方法的一些代码示例,展示了RestHighLevelClient.scroll的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RestHighLevelClient.scroll方法的具体详情如下:
包路径:org.elasticsearch.client.RestHighLevelClient
类名称:RestHighLevelClient
方法名:scroll

RestHighLevelClient.scroll介绍

[英]Executes a search using the Search Scroll API. See Search Scroll API on elastic.co
[中]使用搜索滚动API执行搜索。见Search Scroll API on elastic.co

代码示例

代码示例来源:origin: org.elasticsearch.client/elasticsearch-rest-high-level-client

/**
 * Executes a search using the Search Scroll API.
 * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html">Search Scroll
 * API on elastic.co</a>
 * @param searchScrollRequest the request
 * @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
 * @return the response
 * @deprecated use {@link #scroll(SearchScrollRequest, RequestOptions)} instead
 */
@Deprecated
public final SearchResponse searchScroll(SearchScrollRequest searchScrollRequest, RequestOptions options) throws IOException {
  return scroll(searchScrollRequest, options);
}

代码示例来源:origin: apache/servicemix-bundles

return scroll(searchScrollRequest, options);

代码示例来源:origin: org.nuxeo.elasticsearch/nuxeo-elasticsearch-core

@Override
public SearchResponse searchScroll(SearchScrollRequest request) {
  try {
    return client.scroll(request, RequestOptions.DEFAULT);
  } catch (IOException e) {
    throw new NuxeoException(e);
  }
}

相关文章