indices.shrink

edit
client.indices.shrink({
  index: string,
  target: string,
  timeout: string,
  master_timeout: string,
  wait_for_active_shards: string,
  body: object
})

Reference

index

string - The name of the source index to shrink

target

string - The name of the target index to shrink into

timeout

string - Explicit operation timeout

master_timeout or masterTimeout

string - Specify timeout for connection to master

wait_for_active_shards or waitForActiveShards

string - Set the number of active shards to wait for on the shrunken index before the operation returns.

body

object - The configuration for the target index (settings and aliases)