Skip to content

voluntas/duckdb-wasm-fts-lindera

Repository files navigation

DuckDB-Wasm (FTS 拡張) と Lindera-Wasm-ipadic を使った日本語インスタント全文検索

概要

DuckDB-Wasm の Full Text Search (FTS) 拡張と Lindera-Wasm-ipadic を利用してブラウザかつオフラインで日本語のインスタント全文検索を実現するデモです。

DuckDB の FTS 拡張とは

DuckDB には Full Text Search (FTS) 拡張 が標準で含まれています。ただ、日本語はサポートされていません。

Lindera-Wasm とは

Lindera は Rust で書かれた形態素解析ライブラリです。 Meilisearch などに採用されています。

Lindera-Wasm-ipadicwasm-pack を利用した Lindera の Wasm 版です。

注意

  • TypeScript は適当です
  • HTML と CSS は適当です
  • SQL は適当です

とりあえず触ってみたい

デモサイトを用意してあります。

https://voluntas.github.io/duckdb-wasm-fts-lindera/

動作例

Image from Gyazo

記事

ブラウザでオフライン日本語インスタント全文検索を実現する

ライセンス

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.

About

DuckDB-Wasm (FTS 拡張) + Lindera-Wasm

Topics

Resources

License

Stars

Watchers

Forks