fix(pglite): default the search backend to legacy

The fts backend needs SQLite's FTS5 virtual tables; on this branch any
search returned 'syntax error at or near MATCH'. The LIKE backend works
unchanged on PostgreSQL.
This commit is contained in:
Deluan 2026-09-05 01:55:56 -04:00
commit 01cb20817c

View file

@ -998,7 +998,7 @@ func setViperDefaults() {
viper.SetDefault("autotranscodedownload", false)
viper.SetDefault("defaultdownsamplingformat", consts.DefaultDownsamplingFormat)
viper.SetDefault("search.fullstring", false)
viper.SetDefault("search.backend", "fts")
viper.SetDefault("search.backend", "legacy") // FTS5 is SQLite-only; the LIKE backend works on PostgreSQL
viper.SetDefault("matcher.preferstarred", true)
viper.SetDefault("matcher.fuzzythreshold", 85)
viper.SetDefault("recentlyaddedbymodtime", false)