mirror of
https://github.com/R0m1k3/FlowReader.git
synced 2026-10-17 12:17:31 +02:00
feat: implement Deep Forest dark mode, swipe gestures, PWA support, and PostgreSQL Full-Text Search
This commit is contained in:
1 parent
3e468d8885
commit
7e802df2a7
18 files changed
+4800
-128
No files matched your search
@@ -0,0 +1,15 @@
|
||||
-- Migration: 005_search_articles_up
|
||||
-- Description: Add Full-Text Search support to articles table
|
||||
|
||||
-- Add tsvector column (generated)
|
||||
-- Weighting: Title (A), Summary (B), Content (C)
|
||||
ALTER TABLE articles
|
||||
ADD COLUMN IF NOT EXISTS tsv tsvector
|
||||
GENERATED ALWAYS AS (
|
||||
setweight(to_tsvector('french', coalesce(title, '')), 'A') ||
|
||||
setweight(to_tsvector('french', coalesce(summary, '')), 'B') ||
|
||||
setweight(to_tsvector('french', coalesce(content, '')), 'C')
|
||||
) STORED;
|
||||
|
||||
-- Create GIN index for fast searching
|
||||
CREATE INDEX IF NOT EXISTS idx_articles_tsv ON articles USING GIN(tsv);
|
||||
Reference in new issue
Block a user