Documentation ¶
Index ¶
- func New(cfg search.Config) (search.Searcher, error)
- type ZincSearch
- func (m *ZincSearch) Add(index string, primaryKey string, docs ...interface{}) error
- func (m *ZincSearch) Delete(index string, ids ...string) error
- func (m *ZincSearch) Flush() error
- func (m *ZincSearch) InitIndex(cfg *search.IndexConfig) error
- func (m *ZincSearch) Search(index string, keywords string, options *search.SearchRequest) (int64, []echo.H, error)
- func (m *ZincSearch) Update(index string, primaryKey string, docs ...interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ZincSearch ¶
type ZincSearch struct {
doc.ZincDocSDK
}
func (*ZincSearch) Add ¶
func (m *ZincSearch) Add(index string, primaryKey string, docs ...interface{}) error
func (*ZincSearch) Flush ¶
func (m *ZincSearch) Flush() error
func (*ZincSearch) InitIndex ¶
func (m *ZincSearch) InitIndex(cfg *search.IndexConfig) error
Click to show internal directories.
Click to hide internal directories.