engine

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

* File Created: Wednesday, 20th October 2021 3:27:05 pm * Author: vuuihc (zshyou@gmail.com) * ----- * Last Modified: Wednesday, 20th October 2021 3:27:15 pm * Modified By: vuuihc (zshyou@gmail.com>) * ----- * Copyright 2021 - 2021 the Apache License, Version 2.0

* File Created: Wednesday, 20th October 2021 7:33:18 pm * Author: vuuihc (zshyou@gmail.com) * ----- * Last Modified: Wednesday, 20th October 2021 7:33:24 pm * Modified By: vuuihc (zshyou@gmail.com>) * ----- * Copyright 2021 - 2021 the Apache License, Version 2.0

* File Created: Friday, 22nd October 2021 2:18:30 pm * Author: vuuihc (zshyou@gmail.com) * ----- * Last Modified: Friday, 22nd October 2021 2:18:57 pm * Modified By: vuuihc (zshyou@gmail.com>) * ----- * Copyright 2021 - 2021 the Apache License, Version 2.0

* File Created: Wednesday, 20th October 2021 7:36:08 pm * Author: vuuihc (zshyou@gmail.com) * ----- * Last Modified: Wednesday, 20th October 2021 7:36:10 pm * Modified By: vuuihc (zshyou@gmail.com>) * ----- * Copyright 2021 - 2021 the Apache License, Version 2.0

* File Created: Wednesday, 20th October 2021 7:23:58 pm * Author: vuuihc (zshyou@gmail.com) * ----- * Last Modified: Wednesday, 20th October 2021 7:24:02 pm * Modified By: vuuihc (zshyou@gmail.com>) * ----- * Copyright 2021 - 2021 the Apache License, Version 2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func (*Engine) Close

func (engine *Engine) Close()

Close Close All db

func (*Engine) IndexDoc

func (engine *Engine) IndexDoc(doc types.DocData) error

IndexDoc process the doc and add to indies

func (*Engine) Init

func (engine *Engine) Init(options *types.EngineOpts)

Init init the engine with options

func (*Engine) InitIndexStore

func (engine *Engine) InitIndexStore()

InitStore init indexDBs

func (*Engine) InitStore

func (engine *Engine) InitStore()

InitStore init vDBs

func (*Engine) SearchDoc

func (engine *Engine) SearchDoc(request *types.SearchReq) (output *types.SearchResp)

func (*Engine) Wait

func (engine *Engine) Wait()

Wait all Index Req are processed

type Gse

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

func (*Gse) Cut

func (g *Gse) Cut(content string) []string

func (*Gse) CutAll

func (g *Gse) CutAll(content string) []string

type SegOption

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

type Segmenter

type Segmenter interface {
	Cut(string) []string
	CutAll(string) []string
}

func NewGse

func NewGse(opt *SegOption) Segmenter

func NewSeg

func NewSeg(segType string, opt *SegOption) Segmenter

Jump to

Keyboard shortcuts

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