Package org.elasticsearch.action.search
Class SearchScrollRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<SearchScrollRequest,SearchResponse>
org.elasticsearch.action.search.SearchScrollRequestBuilder
public class SearchScrollRequestBuilder
extends ActionRequestBuilder<SearchScrollRequest,SearchResponse>
A search scroll action request builder.
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescriptionSearchScrollRequestBuilder(ElasticsearchClient client, SearchScrollAction action)
SearchScrollRequestBuilder(ElasticsearchClient client, SearchScrollAction action, String scrollId)
-
Method Summary
Modifier and TypeMethodDescriptionIf set, will enable scrolling of the search request for the specified timeout.setScroll(org.elasticsearch.core.TimeValue keepAlive)
If set, will enable scrolling of the search request for the specified timeout.If set, will enable scrolling of the search request.setScrollId(String scrollId)
The scroll id to use to continue scrolling.
-
Constructor Details
-
SearchScrollRequestBuilder
-
SearchScrollRequestBuilder
public SearchScrollRequestBuilder(ElasticsearchClient client, SearchScrollAction action, String scrollId)
-
-
Method Details
-
setScrollId
The scroll id to use to continue scrolling. -
setScroll
If set, will enable scrolling of the search request. -
setScroll
If set, will enable scrolling of the search request for the specified timeout. -
setScroll
If set, will enable scrolling of the search request for the specified timeout.
-