replace

package
v0.0.0-...-28a77dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:  "replace",
	Usage: "Replaces the index by another one.",
	Description: `Removes index and creates an alias to new index same as removed index name.
   Index swap performs atomically.

   For more information: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html`,
	ArgsUsage:              "index --by new [--create path/to/body.json]",
	Category:               "Advanced",
	Action:                 ctl.NewAction(replace),
	UseShortOptionHandling: true,
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:     "by",
			Required: true,
			Usage:    "Index replace by",
		},
		cli.StringFlag{
			Name:  "create",
			Usage: "Index body `FILE`",
		},
		cli.BoolFlag{
			Name:  "reindex, r",
			Usage: "Reindex content of replaced index to new one",
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL