Use experimental trigram tokenizer in SQLite FTS.

This commit is contained in:
Sergio Martínez Portela 2022-10-30 23:38:01 +01:00
parent 486c88c583
commit 7d20941765

View File

@ -77,7 +77,7 @@ def create_db(path):
os.unlink(path) os.unlink(path)
db = sqlite3.connect(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 return db
def load_all(top_dir_relative): def load_all(top_dir_relative):