bleve

package
v4.2.10 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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)

func (*Bleve) SearchFiltered added in v4.2.4

func (b *Bleve) SearchFiltered(ctx context.Context, req model.SearchReq, filter searcher.Filter) ([]model.SearchNode, int64, error)

Jump to

Keyboard shortcuts

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