bleve

package
v3.34.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(indexPath *string) (bleve.Index, error)

Types

type Bleve

type Bleve struct {
	BIndex bleve.Index
}

func (*Bleve) BatchIndex

func (b *Bleve) BatchIndex(ctx context.Context, nodes []model.SearchNode) error

func (*Bleve) Clear

func (b *Bleve) Clear(ctx context.Context) error

func (*Bleve) Config

func (b *Bleve) Config() searcher.Config

func (*Bleve) Del

func (b *Bleve) Del(ctx context.Context, prefix string) error

func (*Bleve) Get

func (b *Bleve) Get(ctx context.Context, parent string) ([]model.SearchNode, error)

func (*Bleve) Index

func (b *Bleve) Index(ctx context.Context, node model.SearchNode) error

func (*Bleve) Release

func (b *Bleve) Release(ctx context.Context) error

func (*Bleve) Search

func (b *Bleve) Search(ctx context.Context, req model.SearchReq) ([]model.SearchNode, int64, error)

Jump to

Keyboard shortcuts

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