Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteTokenizer ¶
func DeleteTokenizer(name string)
DeleteTokenizer deletes a tokenizer from the store
func SetTokenizer ¶
SetTokenizer sets a tokenizer in the store will overwrite if it already exists
Types ¶
type NGram ¶
type NGram struct {
// contains filtered or unexported fields
}
type Tokenizer ¶
type Tokenizer interface {
// Process will take in a string value and
// use it to fill out the struct fields
Process(val string) error
// ToSearch will take in a string value and
// return a slice of strings that can be used
// to search
ToSearch(val string) ([]string, error)
Search(val []string) (bool, error)
}
type Words ¶
type Words struct {
// contains filtered or unexported fields
}
func NewWords ¶
func NewWords() *Words
NewWords will remove accents, lowercase and make it searchable via words
Click to show internal directories.
Click to hide internal directories.