propertyspecific

package
v1.23.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	Name     string
	Type     schema.DataType
	GeoIndex *geo.Index
}

Index - for now - only supports a Geo index as a property-specific index. This could be extended in the future, for example to allow vectorization of single properties, as opposed to only allowing vectorization of the entire object.

type Indices

type Indices map[string]Index

Indices is a collection of property-specific Indices by propname

func (Indices) ByProp

func (i Indices) ByProp(propName string) (Index, bool)

ByProp retrieves a property-specific index by prop name. Second argument is false, if the index doesn't exist.

func (Indices) DropAll

func (i Indices) DropAll(ctx context.Context) error

Jump to

Keyboard shortcuts

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