feat(search): upgrade to PostgreSQL full-text search with German stemming #237
@@ -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;
|
||||
Reference in New Issue
Block a user