searcher

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Searcher

type Searcher interface {
	// Search retrieves documents from the typesense collection based on the search filters
	Search(collection string, filter *datastore.SearchFilter) ([]string, datastore.PaginationData, error)

	// Index upserts the collection and indexes documents in the typesense collection,
	// each document must have the id, uid, created_at and updated_at fields
	Index(collection string, document map[string]interface{}) error

	// Remove removes documents from the typesense collection based on the search filters
	Remove(collection string, filter *datastore.SearchFilter) error
}

func NewSearchClient

func NewSearchClient(c config.Configuration) (Searcher, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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