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) 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 信息
Click to show internal directories.
Click to hide internal directories.