Versions in this module Expand all Collapse all v0 v0.3.0 Apr 21, 2020 Changes in this version + const AllField + const FieldNamesField + const IdField + const IgnoredField + const IndexField + const MetaField + const RoutingField + const SizeField + const SlotField + const SourceField + const TypeField + const UidField + const VersionField + var FieldsIndex = map[string]int + func Equals(f1, f2 FieldMappingI) bool + func MergeSchema(old, new []byte) ([]byte, error) + func SchemaMap(schema []byte) (map[string]FieldMappingI, error) + type BaseFieldMapping struct + Array bool + Boost float64 + Name string + Option pspb.FieldOption + Type pspb.FieldType + func NewBaseFieldMapping(name string, fieldType pspb.FieldType, boost float64, option pspb.FieldOption) *BaseFieldMapping + func (f *BaseFieldMapping) Base() *BaseFieldMapping + func (f *BaseFieldMapping) FieldName() string + func (f *BaseFieldMapping) FieldType() pspb.FieldType + func (f *BaseFieldMapping) IsArray() bool + func (f *BaseFieldMapping) Options() pspb.FieldOption + type BooleanFieldMapping struct + NullValue string + func NewBooleanFieldMapping(name string) *BooleanFieldMapping + type DateFieldMapping struct + Format string + IgnoreMalformed bool + Locale string + NullValue string + func NewDateFieldMapping(name string) *DateFieldMapping + type DocumentMapping struct + Field *FieldMapping + Properties map[string]*DocumentMapping + func NewDocumentMapping() *DocumentMapping + func ParseSchema(schema []byte) (*DocumentMapping, error) + func (dm *DocumentMapping) UnmarshalJSON(data []byte) error + type FieldMapping struct + Name string + func NewFieldMapping(name string, i FieldMappingI) *FieldMapping + func (f *FieldMapping) UnmarshalJSON(data []byte) error + type FieldMappingI interface + Base func() *BaseFieldMapping + FieldName func() string + FieldType func() pspb.FieldType + IsArray func() bool + Options func() pspb.FieldOption + type GeoPointFieldMapping struct + IgnoreZValue bool + NullValue string + func NewGeoPointFieldMapping(name string) *GeoPointFieldMapping + type IndexMapping struct + DefaultDateTimeParserName string + DocumentMapping *DocumentMapping + func NewIndexMapping() *IndexMapping + func Space2Mapping(space *entity.Space) (indexMapping *IndexMapping, err error) + func (im *IndexMapping) GetDocument(path string) *DocumentMapping + func (im *IndexMapping) GetField(path string) *FieldMapping + func (im *IndexMapping) GetFieldsType() map[string]pspb.FieldType + func (im *IndexMapping) InitFieldCache() + func (im *IndexMapping) MapDocument(source []byte) ([]*pspb.Field, map[string]pspb.FieldType, error) + func (im *IndexMapping) RangeField(f func(key string, value *DocumentMapping) error) error + func (im *IndexMapping) SortRangeField(f func(key string, value *DocumentMapping) error) error + type NumericFieldMapping struct + Coerce bool + IgnoreMalformed bool + NullValue string + func NewFloatFieldMapping(name string) *NumericFieldMapping + func NewIntegerFieldMapping(name string) *NumericFieldMapping + type StringFieldMapping struct + NullValue string + func NewStringFieldMapping(name string) *StringFieldMapping + type VectortFieldMapping struct + Dimension int + Format *string + ModelId string + RetrievalType string + StoreParam []byte + StoreType string + func NewVectorFieldMapping(name string) *VectortFieldMapping Incompatible versions in this module v3.2.0+incompatible Sep 7, 2020 v3.1.0+incompatible May 29, 2020