Documentation
¶
Index ¶
- func GetMigrationsFS() (fs.FS, error)
- func Migrations() *persistence.Migrations
- type BunDB
- type Config
- type Provider
- func (p *Provider) Capabilities(context.Context) (types.CapabilitySet, error)
- func (p *Provider) DeleteBySource(ctx context.Context, index, registrationKey string, sourceIDs []string) error
- func (p *Provider) DeleteDocuments(ctx context.Context, index string, ids []string) error
- func (p *Provider) EnsureIndex(ctx context.Context, def types.IndexDefinition) error
- func (p *Provider) Health(ctx context.Context, req types.HealthRequest) (types.HealthStatus, error)
- func (p *Provider) Name() string
- func (p *Provider) ReplaceDocuments(ctx context.Context, index, registrationKey string, sourceIDs []string, ...) error
- func (p *Provider) ResetRegistration(ctx context.Context, index, registrationKey string) error
- func (p *Provider) Search(ctx context.Context, req types.SearchRequest) (types.SearchResultPage, error)
- func (p *Provider) SearchBatch(ctx context.Context, requests []types.SearchRequest) ([]types.SearchResultPage, error)
- func (p *Provider) Suggest(ctx context.Context, req types.SuggestRequest) (types.SuggestResult, error)
- func (p *Provider) UpsertDocuments(ctx context.Context, index string, docs []types.Document) error
- type SchemaManagementMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMigrationsFS ¶ added in v0.6.0
func Migrations ¶
func Migrations() *persistence.Migrations
Types ¶
type BunDB ¶
type BunDB interface {
NewInsert() *bun.InsertQuery
NewSelect() *bun.SelectQuery
NewDelete() *bun.DeleteQuery
NewRaw(query string, args ...any) *bun.RawQuery
PingContext(ctx context.Context) error
RunInTx(ctx context.Context, opts *sql.TxOptions, fn func(ctx context.Context, tx bun.Tx) error) error
}
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) Capabilities ¶
func (*Provider) DeleteBySource ¶
func (*Provider) DeleteDocuments ¶
func (*Provider) EnsureIndex ¶
func (*Provider) Health ¶
func (p *Provider) Health(ctx context.Context, req types.HealthRequest) (types.HealthStatus, error)
func (*Provider) ReplaceDocuments ¶
func (*Provider) ResetRegistration ¶ added in v0.2.0
func (*Provider) Search ¶
func (p *Provider) Search(ctx context.Context, req types.SearchRequest) (types.SearchResultPage, error)
func (*Provider) SearchBatch ¶
func (p *Provider) SearchBatch(ctx context.Context, requests []types.SearchRequest) ([]types.SearchResultPage, error)
func (*Provider) Suggest ¶
func (p *Provider) Suggest(ctx context.Context, req types.SuggestRequest) (types.SuggestResult, error)
type SchemaManagementMode ¶ added in v0.6.0
type SchemaManagementMode string
const ( SchemaManagementAuto SchemaManagementMode = "auto" SchemaManagementExternal SchemaManagementMode = "external" )
Click to show internal directories.
Click to hide internal directories.