Versions in this module Expand all Collapse all v0 v0.1.0 Jun 22, 2026 Changes in this version + func RegisterDriver(name string, f DriverFactory) + type DriverFactory func(k *togo.Kernel) (Searcher, error) + type Hit struct + Doc map[string]any + ID string + Score float64 + type Searcher interface + Delete func(ctx context.Context, index, id string) error + Index func(ctx context.Context, index, id string, doc map[string]any) error + Search func(ctx context.Context, index, query string, limit int) ([]Hit, error) + type Service struct + func FromKernel(k *togo.Kernel) (*Service, bool) + func (s *Service) Delete(ctx context.Context, index, id string) error + func (s *Service) Driver() string + func (s *Service) Index(ctx context.Context, index, id string, doc map[string]any) error + func (s *Service) Search(ctx context.Context, index, query string, limit int) ([]Hit, error)