index

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDoc

func AddDoc(in *IndexEngine)

AddDoc 读取配置文件,进行doc文件转成struct

func Run

func Run(meta *engine.Meta)

func RunningIndex

func RunningIndex()

func SyncIndex2Meta

func SyncIndex2Meta(meta *engine.Meta, ticker *time.Ticker)

Types

type IndexEngine

type IndexEngine struct {
	*engine.Engine
	*engine.Meta
}

IndexEngine 构建索引的引擎

func NewIndexEngine

func NewIndexEngine(meta *engine.Meta) *IndexEngine

NewIndexEngine init

func (*IndexEngine) AddDocument

func (in *IndexEngine) AddDocument(doc *types.Document) (err error)

AddDocument 添加文档

func (*IndexEngine) Close

func (in *IndexEngine) Close()

Close --

Jump to

Keyboard shortcuts

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