Documentation ¶
Index ¶
- type Meilisearch
- func (m *Meilisearch) BatchIndex(ctx context.Context, nodes []model.SearchNode) error
- func (m *Meilisearch) Clear(ctx context.Context) error
- func (m *Meilisearch) Config() searcher.Config
- func (m *Meilisearch) Del(ctx context.Context, prefix string) error
- func (m *Meilisearch) DelDirChild(ctx context.Context, prefix string) error
- func (m *Meilisearch) Get(ctx context.Context, parent string) ([]model.SearchNode, error)
- func (m *Meilisearch) Index(ctx context.Context, node model.SearchNode) error
- func (m *Meilisearch) Release(ctx context.Context) error
- func (m *Meilisearch) Search(ctx context.Context, req model.SearchReq) ([]model.SearchNode, int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meilisearch ¶
type Meilisearch struct { Client *meilisearch.Client IndexUid string FilterableAttributes []string SearchableAttributes []string }
func (*Meilisearch) BatchIndex ¶
func (m *Meilisearch) BatchIndex(ctx context.Context, nodes []model.SearchNode) error
func (*Meilisearch) Config ¶
func (m *Meilisearch) Config() searcher.Config
func (*Meilisearch) DelDirChild ¶
func (m *Meilisearch) DelDirChild(ctx context.Context, prefix string) error
func (*Meilisearch) Get ¶
func (m *Meilisearch) Get(ctx context.Context, parent string) ([]model.SearchNode, error)
func (*Meilisearch) Index ¶
func (m *Meilisearch) Index(ctx context.Context, node model.SearchNode) error
Click to show internal directories.
Click to hide internal directories.