+4
-0
lines changedFilter options
+4
-0
lines changed Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
3
3
4
4
import lunr from 'lunr'
5
5
import stemmer from 'lunr-languages/lunr.stemmer.support'
6
+
import tinyseg from 'lunr-languages/tinyseg'
6
7
import multi from 'lunr-languages/lunr.multi'
7
8
import { get, set, createStore } from 'idb-keyval'
8
9
@@ -28,6 +29,9 @@ async function loadIndex({ lunrLanguages }: { lunrLanguages?: string[] }) {
28
29
if (lunrLanguages && lunrLanguages.length > 0) {
29
30
multi(lunr)
30
31
stemmer(lunr)
32
+
if (lunrLanguages.includes('ja')) {
33
+
tinyseg(lunr)
34
+
}
31
35
await Promise.all(lunrLanguages.map(initLanguage))
32
36
}
33
37
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4