Created
September 14, 2023 13:14
-
-
Save gyakkun/4983db232983063e92c910b59c48a8f2 to your computer and use it in GitHub Desktop.
htu_trigram.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin; | |
create virtual table if not exists search_urls using fts5 | |
( | |
url, | |
title, | |
tokenize = 'trigram' | |
); | |
alter table search_urls rename to search_urls_bak; | |
create virtual table search_urls using fts5 | |
( | |
url, | |
title, | |
tokenize = 'trigram' | |
); | |
insert into search_urls select url,title from search_urls_bak; | |
drop table search_urls_bak; | |
commit; | |
vacuum; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment