bleve

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBleveStore

func NewBleveStore(dbPath string) (core.FullTextStore, error)

NewBleveStore 创建或打开 bleve 索引

Types

type BleveStore

type BleveStore struct {
	// contains filtered or unexported fields
}

BleveStore 基于 bleve 的全文搜索引擎

func (*BleveStore) Close

func (s *BleveStore) Close() error

Close 关闭索引

func (*BleveStore) Delete

func (s *BleveStore) Delete(chunkID string) error

Delete 从索引中删除 chunk

func (*BleveStore) Index

func (s *BleveStore) Index(chunk *core.Chunk) error

Index 将 chunk 索引到 bleve

func (*BleveStore) Search

func (s *BleveStore) Search(query string, topK int) ([]core.FullTextSearchResult, error)

Search 执行全文搜索,返回匹配的 chunk 信息

Jump to

Keyboard shortcuts

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