Use experimental trigram tokenizer in SQLite FTS.
This commit is contained in:
parent
486c88c583
commit
7d20941765
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user