Skip to content
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

FTS5 Custom Tokenize #822

Open
bluedaquiri opened this issue Apr 19, 2021 · 0 comments
Open

FTS5 Custom Tokenize #822

bluedaquiri opened this issue Apr 19, 2021 · 0 comments

Comments

@bluedaquiri
Copy link

let simpleTok = FMSimpleTokenizer(locale: nil)
FMDatabase.registerTokenizer(simpleTok)
db.installTokenizerModule(withName: "tokenizer1")

SQL1: CREATE VIRTUAL TABLE IF NOT EXISTS 'Test' USING fts5(title, body, tokenize = 'tokenizer1')
SQL2: CREATE VIRTUAL TABLE IF NOT EXISTS 'Test' USING fts4(title, body, tokenize = 'tokenizer1')

When i use FTS5 in FMDB,I get an error like "no such tokenizer: tokenizer1". (SQL1)
But it is succeed in FT4.(SQL2), how can i work it in FT5?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant