From 7d209417659f8f6f975dfb456ead884e10b57495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Sun, 30 Oct 2022 23:38:01 +0100 Subject: [PATCH] Use experimental trigram tokenizer in SQLite FTS. --- scripts/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate.py b/scripts/generate.py index 6c990c0..2ca6882 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -77,7 +77,7 @@ def create_db(path): os.unlink(path) db = sqlite3.connect(path) - db.execute('CREATE VIRTUAL TABLE note_search USING fts5(note_id, title, body, top_level_title, is_done, is_todo);') + db.execute('CREATE VIRTUAL TABLE note_search USING fts5(note_id, title, body, top_level_title, is_done, is_todo, tokenize="trigram");') return db def load_all(top_dir_relative):