xs4go
1.0.0
xunsearch golang sdk
Indexing: Refer to the Xunsearch index section.
Search: Refer to the Xunsearch search section.
Refer to test/demox.toml and Xunsearch official.
Please implement the following interface yourself:
type Tokenizer interface {
GetTokens ( text string ) [] string
}Then set it as a word participle:
index , err := xs . NewIndexer ( "./demox.toml" )
index . SetTokenizer ( yourTokenizer )