typesense

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCreatedAtFieldIsNotString = errors.New("created_at field should be a string")
View Source
var ErrCreatedAtFieldIsRequired = errors.New("created_at field does not exist on the document")
View Source
var ErrIDFieldIsRequired = errors.New("id field does not exist on the document")
View Source
var ErrUidFieldIsNotString = errors.New("uid field should be a string")
View Source
var ErrUidFieldIsRequired = errors.New("uid field does not exist on the document")
View Source
var ErrUpdatedAtFieldIsNotString = errors.New("updated_at field should be a string")
View Source
var ErrUpdatedAtFieldIsRequired = errors.New("updated_at field does not exist on the document")

Functions

This section is empty.

Types

type Typesense

type Typesense struct {
	// contains filtered or unexported fields
}

func NewTypesenseClient

func NewTypesenseClient(host, apiKey string) (*Typesense, error)

func (*Typesense) Index

func (t *Typesense) Index(collection string, document map[string]interface{}) error

func (*Typesense) Remove

func (t *Typesense) Remove(collection string, f *datastore.SearchFilter) error

func (*Typesense) Search

func (t *Typesense) Search(collection string, f *datastore.SearchFilter) ([]string, datastore.PaginationData, error)

Jump to

Keyboard shortcuts

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