feat(search): upgrade to PostgreSQL full-text search with German stemming #237

Merged
marcel merged 8 commits from feat/issue-222-fts-search into main 2026-04-15 12:40:21 +02:00
Showing only changes of commit 7ec3e6170d - Show all commits

View File

@@ -0,0 +1,6 @@
-- Backfill search_vector for all existing documents.
-- The BEFORE UPDATE trigger (trg_documents_fts, installed by V34) recomputes
-- the full vector from title, summary, transcription blocks, sender/receiver
-- names, tags, and location. At backfill time all join tables already contain
-- data, so "SET title = title" is sufficient to fire the trigger for every row.
UPDATE documents SET title = title;