Package org.nuxeo.elasticsearch.api
Class EsScrollResult
java.lang.Object
org.nuxeo.elasticsearch.api.EsResult
org.nuxeo.elasticsearch.api.EsScrollResult
Wrapper for the results of a scrollable search request.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final long
Timeout for keeping the search context alive.protected final NxQueryBuilder
NxQueryBuilder
used for the initial search request.protected final String
Scroll id returned by the search request. -
Constructor Summary
ConstructorDescriptionEsScrollResult
(DocumentModelList documents, org.opensearch.action.search.SearchResponse response, NxQueryBuilder queryBuilder, String scrollId, long keepAlive) EsScrollResult
(IterableQueryResult rows, org.opensearch.action.search.SearchResponse response, NxQueryBuilder queryBuilder, String scrollId, long keepAlive) EsScrollResult
(NxQueryBuilder queryBuilder, String scrollId, long keepAlive) EsScrollResult
(org.opensearch.action.search.SearchResponse response, NxQueryBuilder queryBuilder, String scrollId, long keepAlive) -
Method Summary
Modifier and TypeMethodDescriptionlong
Methods inherited from class org.nuxeo.elasticsearch.api.EsResult
getAggregates, getDocuments, getElasticsearchResponse, getRows
-
Field Details
-
queryBuilder
NxQueryBuilder
used for the initial search request. -
scrollId
Scroll id returned by the search request. -
keepAlive
protected final long keepAliveTimeout for keeping the search context alive.
-
-
Constructor Details
-
EsScrollResult
public EsScrollResult(DocumentModelList documents, org.opensearch.action.search.SearchResponse response, NxQueryBuilder queryBuilder, String scrollId, long keepAlive) -
EsScrollResult
public EsScrollResult(IterableQueryResult rows, org.opensearch.action.search.SearchResponse response, NxQueryBuilder queryBuilder, String scrollId, long keepAlive) -
EsScrollResult
public EsScrollResult(org.opensearch.action.search.SearchResponse response, NxQueryBuilder queryBuilder, String scrollId, long keepAlive) -
EsScrollResult
-
-
Method Details
-
getQueryBuilder
-
getScrollId
-
getKeepAlive
public long getKeepAlive()
-