engine

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Client meilisearch.ServiceManager
	SelfID int64
}

func GetEngine added in v0.12.0

func GetEngine() *Engine

func NewEngine

func NewEngine(ctx context.Context, selfID int64) (*Engine, error)

func (*Engine) AddDocuments

func (e *Engine) AddDocuments(ctx context.Context, chatID int64, docs []*types.MessageDocument) error

func (*Engine) AddDocumentsFromMessages

func (e *Engine) AddDocumentsFromMessages(ctx context.Context, chatID int64, messages []*tg.Message) error

func (*Engine) CreateIndex

func (e *Engine) CreateIndex(ctx context.Context, chatID int64) error

func (*Engine) DeleteDocuments

func (e *Engine) DeleteDocuments(ctx context.Context, chatID int64, ids []int) error

func (*Engine) DeleteIndex

func (e *Engine) DeleteIndex(ctx context.Context, chatID int64) error

func (*Engine) Index added in v0.14.0

func (e *Engine) Index(chatID int64) meilisearch.IndexManager

func (*Engine) Search

func (*Engine) UpdateIndexSettings added in v0.7.0

func (e *Engine) UpdateIndexSettings(ctx context.Context, chatID int64) error

Jump to

Keyboard shortcuts

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