fix(books): support accent-insensitive search

Install the PostgreSQL unaccent extension and use a custom immutable wrapper function to perform accent-insensitive ILIKE comparisons when searching for books, authors, series, and narrators. Add database indexes on the unaccented values to maintain query performance.

Closes #640
This commit is contained in:
neon
2026-07-11 17:47:29 +00:00
parent 89545e6c69
commit d182d913c6
35 changed files with 14055 additions and 99 deletions
+1
View File
@@ -4,4 +4,5 @@
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE EXTENSION IF NOT EXISTS "pg_trgm"; -- for fuzzy text search
CREATE EXTENSION IF NOT EXISTS "unaccent"; -- for accent-insensitive search
CREATE EXTENSION IF NOT EXISTS "vector"; -- for pgvector ANN search