Documentation
¶
Overview ¶
Package search exposes the search.Backend interface and a default adapter that delegates to the active dal.Dialect's FullTextSearch — no external search process is required for the MVP.
See TAD §9.1 and PRD §13.3 for the full specification. Implemented in Phase 2.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
// Index records the given field values for a document in the search index.
// The default Dialect-based backend is a no-op here (FTS is query-time).
Index(ctx context.Context, docType, id string, fields map[string]any) error
// Remove removes a document from the search index.
// No-op for the Dialect-based backend.
Remove(ctx context.Context, docType, id string) error
// Search executes a full-text search and returns matching document IDs.
Search(ctx context.Context, docType, query string, limit int) ([]string, error)
}
Backend is the search interface. The MVP default delegates to the active Dialect's FullTextSearch (no external search process required). See TAD §9.1 and PRD §13.3.
Click to show internal directories.
Click to hide internal directories.