meilisearch

package
v0.0.0-...-67d0eb9 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg search.Config) (search.Searcher, error)

Types

type MeiliSearch

type MeiliSearch struct {
	meilisearch.ServiceManager
}

func (*MeiliSearch) Add

func (m *MeiliSearch) Add(index string, primaryKey string, docs ...interface{}) error

func (*MeiliSearch) Delete

func (m *MeiliSearch) Delete(index string, ids ...string) error

func (*MeiliSearch) DeleteIndex

func (m *MeiliSearch) DeleteIndex(index string) error

func (*MeiliSearch) Flush

func (m *MeiliSearch) Flush() error

func (*MeiliSearch) GetTask

func (m *MeiliSearch) GetTask(index string, taskUID int64) error

func (*MeiliSearch) InitIndex

func (m *MeiliSearch) InitIndex(cfg *search.IndexConfig) error

func (*MeiliSearch) Search

func (m *MeiliSearch) Search(index string, keywords string, options *search.SearchRequest) (int64, []echo.H, error)

func (*MeiliSearch) Update

func (m *MeiliSearch) Update(index string, primaryKey string, docs ...interface{}) error

Jump to

Keyboard shortcuts

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