monstachemap

package
v3.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapperPluginInput

type MapperPluginInput struct {
	Document   map[string]interface{} // the original document from MongoDB
	Database   string                 // the origin database in MongoDB
	Collection string                 // the origin collection in MongoDB
	Namespace  string                 // the entire namespace for the original document
	Operation  string                 // "i" for a insert or "u" for update
	Session    *mgo.Session           // MongoDB session handle
}

MapperPluginInput is the input to the Map function

type MapperPluginOutput

type MapperPluginOutput struct {
	Document        map[string]interface{} // an updated document to index into Elasticsearch
	Index           string                 // the name of the index to use
	Type            string                 // the document type
	Routing         string                 // the routing value to use
	Drop            bool                   // set to true to indicate that the document should not be indexed
	Passthrough     bool                   // set to true to indicate the original document should be indexed unchanged
	Parent          string                 // the parent id to use
	Version         int64                  // the version of the document
	VersionType     string                 // the version type of the document (internal, external, external_gte)
	TTL             string                 // the expiration time
	Pipeline        string                 // the pipeline to index with
	RetryOnConflict int                    // how many times to retry updates before failing
}

MapperPluginOutput is the output of the Map function

Jump to

Keyboard shortcuts

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