aliasedit

Summaryedit

Add indices to or remove them from aliases.

For Curator versions older than 3.2.0, the alias must already be in existence.

Flagsedit

$ curator alias --help
Usage: curator alias [OPTIONS] COMMAND [ARGS]...

  Index Aliasing

Options:
  --name TEXT  Alias name
  --remove     Remove from alias rather than add.  [default: False]
  --help       Show this message and exit.

Commands:
  indices  Index selection.

 

This command requires the indices subcommand for index selection.

Examplesedit

Add indices to alias_name:

curator alias --name alias_name indices <<index selection parameters>>

 

Remove indices from alias_name:

curator alias --name alias_name --remove indices <<index selection parameters>>

 

There are currently no safety checks to preserve an alias. If you remove the last index from an alias, it will be deleted immediately.