indexmeta

package
v1.0.2-dev-10 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsIndexMetadata

type EsIndexMetadata struct {
	IndexName  string        `json:"index_name"`
	Properties PropertiesDto `json:"properties"`
}

func NewIndexMetadata

func NewIndexMetadata() *EsIndexMetadata

func (*EsIndexMetadata) AddField

func (this *EsIndexMetadata) AddField(name, Type string)

func (*EsIndexMetadata) SetIndexName

func (this *EsIndexMetadata) SetIndexName(index string)

func (*EsIndexMetadata) ToMapProp

func (this *EsIndexMetadata) ToMapProp() map[string]any

func (*EsIndexMetadata) ToMapping

func (this *EsIndexMetadata) ToMapping() map[string]any

func (*EsIndexMetadata) ToMappingStr

func (this *EsIndexMetadata) ToMappingStr() string

func (*EsIndexMetadata) ToMappings

func (this *EsIndexMetadata) ToMappings() map[string]any

type Fields

type Fields struct {
	Keyword Keyword `json:"keyword,omitempty"`
}

func NewFields

func NewFields() *Fields

type Keyword

type Keyword struct {
	IgnoreAbove int    `json:"ignore_above"`
	Type        string `json:"type"`
}

type MappingField

type MappingField struct {
	Fields *Fields `json:"fields,omitempty"`
	Type   string  `json:"type"`
}

func NewMappingField

func NewMappingField() *MappingField

type PropertiesDto

type PropertiesDto map[string]*MappingField

Jump to

Keyboard shortcuts

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