bleve

package
v1.26.4 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 31 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

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 represents a bleve indexer implementation

func NewIndexer

func NewIndexer(indexDir string) *Indexer

NewIndexer creates a new bleve local indexer

func (*Indexer) Delete

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

Delete deletes indexes by ids

func (*Indexer) Index

func (b *Indexer) Index(ctx context.Context, repo *repo_model.Repository, sha string, changes *internal.RepoChanges) error

Index indexes the data

func (*Indexer) Search

Search searches for files in the specified repo. Returns the matching file-paths

func (*Indexer) SupportedSearchModes added in v1.24.0

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

type RepoIndexerData

type RepoIndexerData struct {
	RepoID    int64
	CommitID  string
	Content   string
	Filename  string
	Language  string
	UpdatedAt time.Time
}

RepoIndexerData data stored in the repo indexer

func (*RepoIndexerData) Type

func (d *RepoIndexerData) Type() string

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

Directories

Path Synopsis
token

Jump to

Keyboard shortcuts

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