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