reindex

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:                   "reindex",
	Usage:                  "Copies documents from one index to another.",
	Description:            `For more information: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html`,
	ArgsUsage:              "--src source --dst destination [--remote old]",
	Category:               "Intermediate",
	Action:                 ctl.NewAction(reindex),
	UseShortOptionHandling: true,
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:     "source, src, s",
			Required: true,
			Usage:    "Source `index` name. Means remote index if --remote flag presented",
		},
		cli.StringFlag{
			Name:     "destination, dst, d",
			Required: true,
			Usage:    "Destination `index` name in current context",
		},
		cli.StringFlag{
			Name:     "remote, r",
			Required: false,
			Usage:    "Remote cluster `context`",
		},
		cli.DurationFlag{
			Name:     "connection_timeout",
			Required: false,
			Usage:    "Connection timeout to connect with the remote cluster",
			Value:    10 * time.Second,
		},
		cli.DurationFlag{
			Name:     "socket_timeout",
			Required: false,
			Usage:    "Socket timeout to connect with the remote cluster.",
			Value:    1 * time.Minute,
		},
		cli.IntFlag{
			Name:     "size",
			Required: false,
			Usage: "The number of documents to index per batch. " +
				"Use when indexing from remote to ensure that the batches fit within the on-heap buffer, " +
				"which defaults to a maximum size of 100 MB.",
			Value: 1000,
		},
	},
}

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