Documentation
¶
Index ¶
- func InjectEsindexFactroy(s *EsindexFactroy)
- func InjectEsindexMetadata(s *EsindexMetadata)
- func LoadEsindexFactroy() baseiface.ISingleton
- func LoadEsindexMetadata() baseiface.ISingleton
- type EsindexFactroy
- type EsindexMetadata
- func (this *EsindexMetadata) AddField(name, Type string)
- func (this *EsindexMetadata) FindFieldType(field string) string
- func (this *EsindexMetadata) IfDouble(field string) bool
- func (this *EsindexMetadata) IfLong(field string) bool
- func (this *EsindexMetadata) ParseFiledType(indexName string) (map[string]any, error)
- func (this *EsindexMetadata) SetIndexName(index string)
- func (this *EsindexMetadata) ToMapProp() map[string]any
- func (this *EsindexMetadata) ToMapping() map[string]any
- func (this *EsindexMetadata) ToMappingStr() string
- func (this *EsindexMetadata) ToMappings() map[string]any
- type Fields
- type Keyword
- type MappingField
- type PropertiesDto
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 NewEsIndexFactroy ¶
func NewEsIndexFactroy() *EsindexFactroy
type EsindexMetadata ¶
type EsindexMetadata struct { basedto.BaseEntity IndexName string `json:"index_name"` Properties PropertiesDto `json:"-"` EsClient *ichubelastic.ElasticClient `json:"-"` FieldTypeInfo map[string]string `json:"field_type_info"` }
func FindBeanEsindexMetadata ¶
func FindBeanEsindexMetadata() *EsindexMetadata
FindBeanEsindexMetadata
func NewIndexMetadata ¶
func NewIndexMetadata() *EsindexMetadata
func (*EsindexMetadata) AddField ¶
func (this *EsindexMetadata) AddField(name, Type string)
func (*EsindexMetadata) FindFieldType ¶
func (this *EsindexMetadata) FindFieldType(field string) string
func (*EsindexMetadata) IfDouble ¶
func (this *EsindexMetadata) IfDouble(field string) bool
func (*EsindexMetadata) IfLong ¶
func (this *EsindexMetadata) IfLong(field string) bool
func (*EsindexMetadata) ParseFiledType ¶
func (this *EsindexMetadata) ParseFiledType(indexName string) (map[string]any, error)
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 MappingField ¶
func NewMappingField ¶
func NewMappingField() *MappingField
type PropertiesDto ¶
type PropertiesDto map[string]*MappingField
Click to show internal directories.
Click to hide internal directories.