Package org.opensearch.action.search
Class SearchScrollRequestBuilder
java.lang.Object
org.opensearch.action.ActionRequestBuilder<SearchScrollRequest,SearchResponse>
org.opensearch.action.search.SearchScrollRequestBuilder
@PublicApi(since="1.0.0")
public class SearchScrollRequestBuilder
extends ActionRequestBuilder<SearchScrollRequest,SearchResponse>
A search scroll action request builder.
- Opensearch.api:
-
Field Summary
Fields inherited from class org.opensearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescriptionSearchScrollRequestBuilder
(OpenSearchClient client, SearchScrollAction action) SearchScrollRequestBuilder
(OpenSearchClient client, SearchScrollAction action, String scrollId) -
Method Summary
Modifier and TypeMethodDescriptionIf set, will enable scrolling of the search request for the specified timeout.setScroll
(org.opensearch.common.unit.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(OpenSearchClient 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.
-