lindera-sqlite is a C ABI library which exposes a FTS5 tokenizer function.
When used as a custom FTS5 tokenizer this enables application to support Chinese, Japanese and Korean in full-text search.
cargo rustc --features extension -- --crate-type=cdylib
Load extension from ./target/release/liblindera_tokenizer.dylib
.
CREATE VIRTUAL TABLE
fts
USING fts5(content, tokenize='lindera_tokenizer')
cbindgen --profile release . -o target/release/fts5-tokenizer.h