sego

package
v0.0.0-...-23c82d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2021 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SegoName = "sego"
)

Variables

This section is empty.

Functions

func AnalyzerSegoConstructor

func AnalyzerSegoConstructor(config map[string]interface{}, cache *registry.Cache) (*analysis.Analyzer, error)

func CheckDictFiles

func CheckDictFiles(dict string) error

func NewIndexWithSego

func NewIndexWithSego(findex string, dictPath string, searchmode bool, readOnly bool) (bleve.Index, error)

func NewMemIndexWithSego

func NewMemIndexWithSego(dictPath string, searchmode bool) (bleve.Index, error)

func NewSegoTokenizer

func NewSegoTokenizer(dictFiles string, searchmode bool) (analysis.Tokenizer, error)

func SegoTokenizerConstructor

func SegoTokenizerConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.Tokenizer, error)

func StopTokenFilterSegoConstructor

func StopTokenFilterSegoConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenFilter, error)

func TokenMapSegoConstructor

func TokenMapSegoConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenMap, error)

Types

type SegoTokenizer

type SegoTokenizer struct {
	// contains filtered or unexported fields
}

func (*SegoTokenizer) Tokenize

func (this *SegoTokenizer) Tokenize(b []byte) analysis.TokenStream

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL