Help us shape the future of Go! Take the 2026 Go Developer Survey

bleve

package
v3.1.56 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Indexer

type Indexer struct {
	indexer_internal.Indexer // do not composite inner_bleve.Indexer directly to avoid exposing too much
	// contains filtered or unexported fields
}

Indexer implements Indexer interface

func NewIndexer

func NewIndexer(indexDir string) *Indexer

NewIndexer creates a new bleve local indexer

func (*Indexer) Delete

func (b *Indexer) Delete(_ context.Context, ids ...int64) error

Delete deletes indexes by ids

func (*Indexer) Index

func (b *Indexer) Index(_ context.Context, issues ...*internal.IndexerData) error

Index will save the index data

func (*Indexer) Search

func (b *Indexer) Search(ctx context.Context, options *internal.SearchOptions) (*internal.SearchResult, error)

Search searches for issues by given conditions. Returns the matching issue IDs

func (*Indexer) SupportedSearchModes

func (b *Indexer) SupportedSearchModes() []indexer.SearchMode

type IndexerData

type IndexerData internal.IndexerData

IndexerData an update to the issue indexer

func (*IndexerData) Type

func (i *IndexerData) Type() string

Type returns the document type, for bleve's mapping.Classifier interface.

Source Files

  • bleve.go

Jump to

Keyboard shortcuts

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