Class UpgradeRequestBuilder
- java.lang.Object
-
- org.elasticsearch.action.ActionRequestBuilder<Request,Response,RequestBuilder>
-
- org.elasticsearch.action.support.broadcast.BroadcastOperationRequestBuilder<UpgradeRequest,UpgradeResponse,UpgradeRequestBuilder>
-
- org.elasticsearch.action.admin.indices.upgrade.post.UpgradeRequestBuilder
-
public class UpgradeRequestBuilder extends BroadcastOperationRequestBuilder<UpgradeRequest,UpgradeResponse,UpgradeRequestBuilder>
A request to upgrade one or more indices. In order to optimize on all the indices, pass an empty array ornull
for the indices.
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
-
Constructor Summary
Constructors Constructor Description UpgradeRequestBuilder(ElasticsearchClient client, UpgradeAction action)
-
Method Summary
Modifier and Type Method Description UpgradeRequestBuilder
setUpgradeOnlyAncientSegments(boolean upgradeOnlyAncientSegments)
Should the upgrade only the ancient (older major version of Lucene) segments?-
Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationRequestBuilder
setIndices, setIndicesOptions
-
-
-
-
Constructor Detail
-
UpgradeRequestBuilder
public UpgradeRequestBuilder(ElasticsearchClient client, UpgradeAction action)
-
-
Method Detail
-
setUpgradeOnlyAncientSegments
public UpgradeRequestBuilder setUpgradeOnlyAncientSegments(boolean upgradeOnlyAncientSegments)
Should the upgrade only the ancient (older major version of Lucene) segments?
-
-