Files
DevRunbook-Public/adr/ADR-004-postgres-search-first.md
T
DevRunbook release export cfd2804e27
Managed validation / full (push) Successful in 3m18s
Publish DevRunbook source
2026-09-03 04:09:17 +02:00

682 B

ADR-004 — PostgreSQL search before semantic infrastructure

Status

Accepted

Context

The library requires fast title, tag, category and intent search with filters. A vector database adds operational complexity and less explainable ranking.

Decision

Use PostgreSQL full-text search plus structured filters and optional trigram matching. Add semantic search only after measured unmet discovery needs.

Consequences

  • one datastore and simple self-hosting;
  • explainable matching;
  • adequate scale for initial catalog and private content;
  • synonyms and curated intent terms need content governance;
  • future embedding index remains possible behind a search port.