indices.putAliasedit

client.indices.putAlias({
  index: string | string[],
  name: string,
  timeout: string,
  master_timeout: string,
  body: object
})

Reference

index

string | string[] - A comma-separated list of index names the alias should point to (supports wildcards); use _all to perform the operation on all indices.

name

string - The name of the alias to be created or updated

timeout

string - Explicit timestamp for the document

master_timeout or masterTimeout

string - Specify timeout for connection to master

body

object - The settings for the alias, such as routing or filter