Documentation ¶
Index ¶
- Variables
- func Register(name string, engine Searcher)
- func Unregister(name string)
- type Config
- type IndexConfig
- type NopSearch
- func (n *NopSearch) Add(index string, primaryKey string, docs ...interface{}) error
- func (m *NopSearch) Delete(index string, ids ...string) error
- func (n *NopSearch) Flush() error
- func (m *NopSearch) InitIndex(cfg *IndexConfig) error
- func (n *NopSearch) Search(index string, keywords string, options *SearchRequest) (int64, []echo.H, error)
- func (m *NopSearch) Update(index string, primaryKey string, docs ...interface{}) error
- type SearchRequest
- type Searcher
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSearch = &NopSearch{}
Functions ¶
func Unregister ¶
func Unregister(name string)
Types ¶
type IndexConfig ¶
type NopSearch ¶
type NopSearch struct{}
func (*NopSearch) InitIndex ¶
func (m *NopSearch) InitIndex(cfg *IndexConfig) error
type SearchRequest ¶
type Searcher ¶
type Searcher interface { Add(index string, primaryKey string, docs ...interface{}) error Update(index string, primaryKey string, docs ...interface{}) error Delete(index string, ids ...string) error Flush() error InitIndex(cfg *IndexConfig) error Search(index string, keywords string, options *SearchRequest) (int64, []echo.H, error) }
Click to show internal directories.
Click to hide internal directories.