本文整理了Java中org.elasticsearch.search.builder.SearchSourceBuilder.searchAfter()
方法的一些代码示例,展示了SearchSourceBuilder.searchAfter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SearchSourceBuilder.searchAfter()
方法的具体详情如下:
包路径:org.elasticsearch.search.builder.SearchSourceBuilder
类名称:SearchSourceBuilder
方法名:searchAfter
[英]The sort values that indicates which docs this request should "search after". The sort values of the search_after must be equal to the number of sort fields in the query and they should be of the same type (or parsable as such). Defaults to null.
[中]指示此请求应“搜索”哪些文档的排序值。search_after的排序值必须等于查询中的排序字段数,并且它们应该是相同的类型(或可解析的)。默认为空。
代码示例来源:origin: org.elasticsearch/elasticsearch
/**
* Set the sort values that indicates which docs this request should "search after".
*
*/
public SearchRequestBuilder searchAfter(Object[] values) {
sourceBuilder().searchAfter(values);
return this;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch
/**
* Set the sort values that indicates which docs this request should "search after".
*
*/
public SearchRequestBuilder searchAfter(Object[] values) {
sourceBuilder().searchAfter(values);
return this;
}
代码示例来源:origin: apache/servicemix-bundles
/**
* Set the sort values that indicates which docs this request should "search after".
*
*/
public SearchRequestBuilder searchAfter(Object[] values) {
sourceBuilder().searchAfter(values);
return this;
}
代码示例来源:origin: com.strapdata.elasticsearch/elasticsearch
/**
* Set the sort values that indicates which docs this request should "search after".
*
*/
public SearchRequestBuilder searchAfter(Object[] values) {
sourceBuilder().searchAfter(values);
return this;
}
代码示例来源:origin: org.elasticsearch/elasticsearch
context.groupStats(source.stats());
if (source.searchAfter() != null && source.searchAfter().length > 0) {
if (context.scrollContext() != null) {
throw new SearchContextException(context, "`search_after` cannot be used in a scroll context.");
throw new SearchContextException(context, "`from` parameter must be set to 0 when `search_after` is used.");
FieldDoc fieldDoc = SearchAfterBuilder.buildFieldDoc(context.sort(), source.searchAfter());
context.searchAfter(fieldDoc);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch
context.groupStats(source.stats());
if (source.searchAfter() != null && source.searchAfter().length > 0) {
if (context.scrollContext() != null) {
throw new SearchContextException(context, "`search_after` cannot be used in a scroll context.");
throw new SearchContextException(context, "`from` parameter must be set to 0 when `search_after` is used.");
FieldDoc fieldDoc = SearchAfterBuilder.buildFieldDoc(context.sort(), source.searchAfter());
context.searchAfter(fieldDoc);
代码示例来源:origin: com.strapdata.elasticsearch/elasticsearch
context.groupStats(source.stats());
if (source.searchAfter() != null && source.searchAfter().length > 0) {
if (context.scrollContext() != null) {
throw new SearchContextException(context, "`search_after` cannot be used in a scroll context.");
throw new SearchContextException(context, "`from` parameter must be set to 0 when `search_after` is used.");
FieldDoc fieldDoc = SearchAfterBuilder.buildFieldDoc(context.sort(), source.searchAfter());
context.searchAfter(fieldDoc);
代码示例来源:origin: com.strapdata.elasticsearch.test/framework
parser.nextToken();
parser.nextToken();
builder.searchAfter(SearchAfterBuilder.fromXContent(parser).getSortValues());
} catch (IOException e) {
throw new RuntimeException("Error building search_from", e);
内容来源于网络,如有侵权,请联系作者删除!