-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add working examples of full-text-search of SQLite3 #309
Conversation
sugoi! |
6d6b4d8
to
14815ee
Compare
F.Y.I. This PR was inspired while reading the below book by @mattn san.
|
I just noticed that the below two query at line 76 and 77 in main.go, the column name _, err = db.Exec(`
CREATE TABLE IF NOT EXISTS contents_fts(docid INTEGER PRIMARY KEY AUTOINCREMENT, words TEXT);
CREATE VIRTUAL TABLE IF NOT EXISTS fts USING fts4(content, tokenize=unicode61 "remove_diacritics=2");
`) I will 追いPush the changes. |
Done! @ikawaha Plz review it when you got free time. |
sugoi! |
@ikawaha Sorry, I should've PRed to the |
@KEINOS Never mind, I just forgot to create a develop branch :p. |
chore: Sample sentences are replaced by sentences with easily understandable morphological analysis results. chore: Added an example of a missing search target.
I merged your PR, thank you! Indeed, it got way better to understand about the analysis. I added some other search words to clarify more. Please merge if it LGTY! |
Thank you! |
This PR is a part of #299 which is an example of using Kagome as a tokenizer for full-text-search, a.k.a. FTS4, of SQLite3.