**Priority:** Medium (Final sprint before 27 Nov) **Source:** Peer feedback (3 reviewers: `cafe` → `Café`, `beyonce` → `Beyoncé`, `jose merce` → `José Mercé`) ## Problem Both the stored `album.search_vector` trigger (`server/drizzle/0001_user-content-and-tracks.sql:45-66`) and the search query builder (`server/src/search/search.ts:65-73`) use PostgreSQL's `simple` dictionary without `unaccent`. Searching without diacritics (`cafe`, `beyonce`, `jose merce`, `bjork`) misses matching accented albums and artists in the catalog. Live VM verification confirmed `unaccent` v1.1 is available in `pg_available_extensions` on the NTNU VM (a PostgreSQL trusted extension ready for `CREATE EXTENSION IF NOT EXISTS unaccent;`). ## Suggested solution - Add a new Drizzle SQL migration that: 1. Enables `CREATE EXTENSION IF NOT EXISTS unaccent;`. 2. Creates an immutable wrapper or custom `simple`-based text search configuration applying `unaccent`. 3. Updates `set_album_search_vector()` and backfills `album.search_vector` for existing rows. - Update `tsQuery` in `server/src/search/search.ts:65-73` to normalize search input consistently with the updated `search_vector`. - Add PostgreSQL integration tests in `server/src/search/search.postgres.test.ts` verifying diacritic-insensitive matches (`bjork` → `Björk`, `cafe` → `Café`, `jose merce` → `José Mercé`). - Remove the accent-sensitive search limitation note from `README.md:272-274`. ## Acceptance criteria - [ ] New Drizzle migration enables `unaccent`, updates `set_album_search_vector()`, and backfills existing `album.search_vector` values cleanly on both fresh and existing databases. - [ ] Searching without accents (`bjork`, `cafe`, `jose merce`) returns accented albums/artists while preserving prefix matching (`:*`) and GIN index usage. - [ ] PostgreSQL integration tests in `server/src/search/search.postgres.test.ts` cover accent-insensitive search on album titles and artist names. - [ ] `README.md:272-274` is updated so it no longer lists accent-sensitive search as a limitation.