All Implemented Interfaces:
IndicesRequest, IndicesRequest.Replaceable, Writeable, org.elasticsearch.common.util.concurrent.RefCounted, TaskAwareRequest

public class UpgradeRequest
extends BroadcastRequest<UpgradeRequest>
A request to upgrade one or more indices. In order to update all indices, pass an empty array or null for the indices.
See Also:
Requests.upgradeRequest(String...), IndicesAdminClient.upgrade(UpgradeRequest), UpgradeResponse
  • Constructor Details

    • UpgradeRequest

      public UpgradeRequest​(java.lang.String... indices)
      Constructs an optimization request over one or more indices.
      Parameters:
      indices - The indices to upgrade, no indices passed means all indices will be optimized.
    • UpgradeRequest

      public UpgradeRequest​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details