index

package
v0.0.0-...-746a50b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectEsindexFactroy

func InjectEsindexFactroy(s *EsindexFactroy)

func InjectEsindexMetadata

func InjectEsindexMetadata(s *EsindexMetadata)

func LoadEsindexFactroy

func LoadEsindexFactroy() baseiface.ISingleton

func LoadEsindexMetadata

func LoadEsindexMetadata() baseiface.ISingleton

Types

type EsindexFactroy

type EsindexFactroy struct {
	basedto.BaseEntitySingle
}

func FindBeanEsindexFactroy

func FindBeanEsindexFactroy() *EsindexFactroy

func NewEsIndexFactroy

func NewEsIndexFactroy() *EsindexFactroy

type EsindexMetadata

type EsindexMetadata struct {
	basedto.BaseEntity

	IndexName  string                      `json:"index_name"`
	Properties PropertiesDto               `json:"properties"`
	EsClient   *ichubelastic.ElasticClient `json:"-"`
}

func FindBeanEsindexMetadata

func FindBeanEsindexMetadata() *EsindexMetadata

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