Documentation ¶
Index ¶
- Constants
- func New(opt Option) (bleve.Index, error)
- func NewAnalyzer(config map[string]interface{}, cache *registry.Cache) (analysis.Analyzer, error)
- func NewDoc() *mapping.DocumentMapping
- func NewMapping(opt Option) (*mapping.IndexMappingImpl, error)
- func NewMappingSep(sep string, trim ...string) (*mapping.IndexMappingImpl, error)
- func NewMem(opt Option) (bleve.Index, error)
- func NewSepMap() *mapping.FieldMapping
- func NewTextMap() *mapping.FieldMapping
- func Trim(s []string, trim string, seg *gse.Segmenter) []string
- type GseCut
- type Option
- type Separator
Constants ¶
View Source
const ( TokenName = "gse" SeparateName = "sep" )
Variables ¶
This section is empty.
Functions ¶
func NewAnalyzer ¶ added in v0.40.0
func NewDoc ¶ added in v0.40.0
func NewDoc() *mapping.DocumentMapping
NewDoc new bleve index document mapping
func NewMapping ¶
func NewMapping(opt Option) (*mapping.IndexMappingImpl, error)
NewMapping new bleve index mapping
func NewMappingSep ¶ added in v0.20.0
func NewMappingSep(sep string, trim ...string) (*mapping.IndexMappingImpl, error)
NewMappingSep new separator mapping
func NewSepMap ¶ added in v0.20.0
func NewSepMap() *mapping.FieldMapping
NewSepMap new text field mapping with sep
func NewTextMap ¶ added in v0.20.0
func NewTextMap() *mapping.FieldMapping
NewTextMap new text field mapping with gse
Types ¶
type GseCut ¶
type GseCut struct {
// contains filtered or unexported fields
}
GseCut gse cut token structure
type Separator ¶ added in v0.20.0
type Separator struct {
// contains filtered or unexported fields
}
Separator type separator tokenizer struct
Click to show internal directories.
Click to hide internal directories.