esndjson

package module
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: MIT Imports: 14 Imported by: 0

README

esndjson

elasticsearch to ndjson migration tool for large indices

Credits

Guo Y.K., MIT License

Documentation

Index

Constants

View Source
const (
	ExtNDJSON        = ".ndjson"
	ExtNDJSONGzipped = ".ndjson.gz"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter interface {
	Run(ctx context.Context) (err error)
}

func NewExporter

func NewExporter(opts ExporterOptions) (Exporter, error)

type ExporterOptions

type ExporterOptions struct {
	// elasticsearch url
	URL string
	// elasticsearch sniff
	Sniff bool
	// local directory
	Dir string
	// index to exportSection
	Index string
	// bulk
	Bulk int
	// section key for term aggregation and term search
	SectionKey string
	// concurrency
	Concurrency int
	// compress level
	CompressLevel int
	// logger
	Logger Logger
}

type Logger added in v1.0.2

type Logger func(layout string, items ...interface{})

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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