| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 | --:api: split-index:request: ResizeRequest:response: ResizeResponse--[id="{upid}-{api}"]=== Split Index API[id="{upid}-{api}-request"]==== Resize RequestThe Split API requires a +{request}+ instance.A +{request}+ requires two string arguments:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request]--------------------------------------------------<1> The target index (first argument) to split the source index (second argument) into<2> The resize type needs to be set to `SPLIT`==== Optional argumentsThe following arguments can optionally be provided:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-timeout]--------------------------------------------------<1> Timeout to wait for the all the nodes to acknowledge the index is openedas a `TimeValue`<2> Timeout to wait for the all the nodes to acknowledge the index is openedas a `String`["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-masterTimeout]--------------------------------------------------<1> Timeout to connect to the master node as a `TimeValue`<2> Timeout to connect to the master node as a `String`["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-waitForActiveShards]--------------------------------------------------<1> The number of active shard copies to wait for before the split index APIreturns a response, as an `int`<2> The number of active shard copies to wait for before the split index APIreturns a response, as an `ActiveShardCount`["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-settings]--------------------------------------------------<1> The settings to apply to the target index, which include the number ofshards to create for it["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-aliases]--------------------------------------------------<1> The aliases to associate the target index withinclude::../execution.asciidoc[][id="{upid}-{api}-response"]==== Split Index ResponseThe returned +{response}+ allows to retrieve information about theexecuted operation as follows:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-response]--------------------------------------------------<1> Indicates whether all of the nodes have acknowledged the request<2> Indicates whether the requisite number of shard copies were started foreach shard in the index before timing out
 |