From 0d820eda1294ec075967488507dd79789fcaf0ee Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 5 Aug 2020 23:31:52 +0200 Subject: [PATCH] Remove diacritics in FTS search --- data/schema/device-schema.sql | 2 +- data/schema/schema-12.sql | 6 +++--- data/schema/schema-9.sql | 4 ++-- data/schema/schema.sql | 14 +++++++------- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/data/schema/device-schema.sql b/data/schema/device-schema.sql index ea8754023..94853d0a5 100644 --- a/data/schema/device-schema.sql +++ b/data/schema/device-schema.sql @@ -72,7 +72,7 @@ CREATE INDEX idx_device_%deviceid_songs_comp_artist ON device_%deviceid_songs (c CREATE VIRTUAL TABLE device_%deviceid_fts USING fts5( ftstitle, ftsalbum, ftsartist, ftsalbumartist, ftscomposer, ftsperformer, ftsgrouping, ftsgenre, ftscomment, - tokenize = "unicode61 remove_diacritics 0" + tokenize = "unicode61 remove_diacritics 1" ); UPDATE devices SET schema_version=1 WHERE ROWID=%deviceid; diff --git a/data/schema/schema-12.sql b/data/schema/schema-12.sql index 4a5960c2e..16659f81a 100644 --- a/data/schema/schema-12.sql +++ b/data/schema/schema-12.sql @@ -180,7 +180,7 @@ CREATE VIRTUAL TABLE IF NOT EXISTS tidal_artists_songs_fts USING fts5( ftsgrouping, ftsgenre, ftscomment, - tokenize = "unicode61 remove_diacritics 0" + tokenize = "unicode61 remove_diacritics 1" ); @@ -195,7 +195,7 @@ CREATE VIRTUAL TABLE IF NOT EXISTS tidal_albums_songs_fts USING fts5( ftsgrouping, ftsgenre, ftscomment, - tokenize = "unicode61 remove_diacritics 0" + tokenize = "unicode61 remove_diacritics 1" ); @@ -210,7 +210,7 @@ CREATE VIRTUAL TABLE IF NOT EXISTS tidal_songs_fts USING fts5( ftsgrouping, ftsgenre, ftscomment, - tokenize = "unicode61 remove_diacritics 0" + tokenize = "unicode61 remove_diacritics 1" ); diff --git a/data/schema/schema-9.sql b/data/schema/schema-9.sql index ee71cca0b..c4e803ea9 100644 --- a/data/schema/schema-9.sql +++ b/data/schema/schema-9.sql @@ -13,7 +13,7 @@ CREATE VIRTUAL TABLE %allsongstables_fts USING fts5( ftsgrouping, ftsgenre, ftscomment, - tokenize = "unicode61 remove_diacritics 0" + tokenize = "unicode61 remove_diacritics 1" ); @@ -28,7 +28,7 @@ CREATE VIRTUAL TABLE playlist_items_fts_ USING fts5( ftsgrouping, ftsgenre, ftscomment, - tokenize = "unicode61 remove_diacritics 0" + tokenize = "unicode61 remove_diacritics 1" ); diff --git a/data/schema/schema.sql b/data/schema/schema.sql index c5cff9a7c..fdd89673d 100644 --- a/data/schema/schema.sql +++ b/data/schema/schema.sql @@ -410,7 +410,7 @@ CREATE VIRTUAL TABLE IF NOT EXISTS songs_fts USING fts5( ftsgrouping, ftsgenre, ftscomment, - tokenize = "unicode61 remove_diacritics 0" + tokenize = "unicode61 remove_diacritics 1" ); @@ -425,7 +425,7 @@ CREATE VIRTUAL TABLE IF NOT EXISTS tidal_artists_songs_fts USING fts5( ftsgrouping, ftsgenre, ftscomment, - tokenize = "unicode61 remove_diacritics 0" + tokenize = "unicode61 remove_diacritics 1" ); @@ -440,7 +440,7 @@ CREATE VIRTUAL TABLE IF NOT EXISTS tidal_albums_songs_fts USING fts5( ftsgrouping, ftsgenre, ftscomment, - tokenize = "unicode61 remove_diacritics 0" + tokenize = "unicode61 remove_diacritics 1" ); @@ -455,7 +455,7 @@ CREATE VIRTUAL TABLE IF NOT EXISTS tidal_songs_fts USING fts5( ftsgrouping, ftsgenre, ftscomment, - tokenize = "unicode61 remove_diacritics 0" + tokenize = "unicode61 remove_diacritics 1" ); @@ -470,7 +470,7 @@ CREATE VIRTUAL TABLE IF NOT EXISTS subsonic_songs_fts USING fts5( ftsgrouping, ftsgenre, ftscomment, - tokenize = "unicode61 remove_diacritics 0" + tokenize = "unicode61 remove_diacritics 1" ); @@ -485,7 +485,7 @@ CREATE VIRTUAL TABLE IF NOT EXISTS playlist_items_fts_ USING fts5( ftsgrouping, ftsgenre, ftscomment, - tokenize = "unicode61 remove_diacritics 0" + tokenize = "unicode61 remove_diacritics 1" ); @@ -500,6 +500,6 @@ CREATE VIRTUAL TABLE IF NOT EXISTS %allsongstables_fts USING fts5( ftsgrouping, ftsgenre, ftscomment, - tokenize = "unicode61 remove_diacritics 0" + tokenize = "unicode61 remove_diacritics 1" );