Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
func (*Engine) DeleteItem ¶
Remove an item from the search engine.
func (*Engine) Search ¶
func (e *Engine) Search(opts SearchOptions) SearchResult
Search finds the most similar items to the given query. limit is the maximum number of items to return. ignore is a list of item ids to ignore.
func (*Engine) SetTolerance ¶
Set the maximum number of typos per word allowed. The default value is 1.
type SearchOptions ¶ added in v0.2.2
type SearchResult ¶ added in v0.2.2
type TokenizeFunc ¶
Click to show internal directories.
Click to hide internal directories.