Documentation
¶
Index ¶
- Constants
- func AnalyzerSegoConstructor(config map[string]interface{}, cache *registry.Cache) (*analysis.Analyzer, error)
- func CheckDictFiles(dict string) error
- func NewIndexWithSego(findex string, dictPath string, searchmode bool, readOnly bool) (bleve.Index, error)
- func NewMemIndexWithSego(dictPath string, searchmode bool) (bleve.Index, error)
- func NewSegoTokenizer(dictFiles string, searchmode bool) (analysis.Tokenizer, error)
- func SegoTokenizerConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.Tokenizer, error)
- func StopTokenFilterSegoConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenFilter, error)
- func TokenMapSegoConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenMap, error)
- type SegoTokenizer
Constants ¶
View Source
const (
SegoName = "sego"
)
Variables ¶
This section is empty.
Functions ¶
func AnalyzerSegoConstructor ¶
func CheckDictFiles ¶
func NewIndexWithSego ¶
func NewMemIndexWithSego ¶
func NewSegoTokenizer ¶
Types ¶
type SegoTokenizer ¶
type SegoTokenizer struct {
// contains filtered or unexported fields
}
func (*SegoTokenizer) Tokenize ¶
func (this *SegoTokenizer) Tokenize(b []byte) analysis.TokenStream
Click to show internal directories.
Click to hide internal directories.