A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/dotnet/docfx/commit/8851faacfce060b280a6d2e3db41e7db423dfe40 below:

Fix japanese search (#9605) · dotnet/docfx@8851faa · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+4

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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