DuckDB-Wasm の Full Text Search (FTS) 拡張と Lindera-Wasm-ipadic を利用してブラウザかつオフラインで日本語のインスタント全文検索を実現するデモです。
DuckDB には Full Text Search (FTS) 拡張 が標準で含まれています。ただ、日本語はサポートされていません。
Lindera は Rust で書かれた形態素解析ライブラリです。 Meilisearch などに採用されています。
Lindera-Wasm-ipadic は wasm-pack を利用した Lindera の Wasm 版です。
- TypeScript は適当です
- HTML と CSS は適当です
- SQL は適当です
デモサイトを用意してあります。
https://voluntas.github.io/duckdb-wasm-fts-lindera/
Copyright 2025-2025, @voluntas
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
