1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-09-02 18:33:17 +02:00

re-add CJK encoder supporting graphemes

This commit is contained in:
Thomas Wilkerling
2025-04-12 11:05:00 +02:00
parent c767fef769
commit 6aadad9c3d
31 changed files with 98 additions and 31 deletions

View File

@@ -62,6 +62,10 @@ const encoder = new Encoder({
3. Charset.LatinExtra
4. Charset.LatinSoundex
#### Built-In CJK Encoder
1. Charset.CJK
### Basic Usage
```js
@@ -566,7 +570,7 @@ const encoder = new Encoder({ rtl: true });
## CJK Word Break (Chinese, Japanese, Korean)
```js
const index = new Index();
const index = new Index({ encoder: Charset.CJK });
index.add(0, "一个单词");
var results = index.search("单词");
```