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 convoy.GenericMap) 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)
Click to show internal directories.
Click to hide internal directories.