elasticsearch

package
v0.1.1-0...-c1e7965 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderTemplate

func RenderTemplate(templateInPath string, fields string, jsonKeysDotNotation []string) *bytes.Buffer

Types

type Mapping

type Mapping struct {
	JsonDotPaths []string //all fields in jsonDotPaths ,use for index.query.default_field parameter, this parameter is to set fields to query when no fields are specified in the query.
	// contains filtered or unexported fields
}

Mapping struct is to get the generated mapping

func MappingInit

func MappingInit(withTimestampField bool, formatIndent string, formatPrefix string) Mapping

Get a new instance of Mapping struct

func (*Mapping) FieldsDefinition

func (mapping *Mapping) FieldsDefinition(protofile []*descriptorpb.FileDescriptorProto) string

func (*Mapping) String

func (mapping *Mapping) String() string

Jump to

Keyboard shortcuts

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