zincsearch

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: AGPL-3.0 Imports: 5 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 ZincSearch

type ZincSearch struct {
	doc.ZincDocSDK
}

func (*ZincSearch) Add

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

func (*ZincSearch) Delete

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

func (*ZincSearch) Flush

func (m *ZincSearch) Flush() error

func (*ZincSearch) InitIndex

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

func (*ZincSearch) Search

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

func (*ZincSearch) Update

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

Jump to

Keyboard shortcuts

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