Package org.elasticsearch.action.support
Interface WriteRequestBuilder<B extends WriteRequestBuilder<B>>
- All Known Implementing Classes:
BulkRequestBuilder
,DeleteRequestBuilder
,IndexRequestBuilder
,UpdateRequestBuilder
public interface WriteRequestBuilder<B extends WriteRequestBuilder<B>>
-
Method Summary
Modifier and TypeMethodDescriptionWriteRequest<?>
request()
default B
setRefreshPolicy(String refreshPolicy)
Parse the refresh policy from a string, only modifying it if the string is non null.default B
setRefreshPolicy(WriteRequest.RefreshPolicy refreshPolicy)
Should this request trigger a refresh (WriteRequest.RefreshPolicy.IMMEDIATE), wait for a refresh ( WriteRequest.RefreshPolicy.WAIT_UNTIL), or proceed ignore refreshes entirely (WriteRequest.RefreshPolicy.NONE, the default).
-
Method Details
-
request
WriteRequest<?> request() -
setRefreshPolicy
Should this request trigger a refresh (WriteRequest.RefreshPolicy.IMMEDIATE), wait for a refresh ( WriteRequest.RefreshPolicy.WAIT_UNTIL), or proceed ignore refreshes entirely (WriteRequest.RefreshPolicy.NONE, the default). -
setRefreshPolicy
Parse the refresh policy from a string, only modifying it if the string is non null. Convenient to use with request parsing.
-