Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lunr.zh.js can`t search 'database' #112

Open
mustapha-wang opened this issue Apr 18, 2024 · 4 comments
Open

lunr.zh.js can`t search 'database' #112

mustapha-wang opened this issue Apr 18, 2024 · 4 comments

Comments

@mustapha-wang
Copy link

mustapha-wang commented Apr 18, 2024

search 'mysql' can found many items,but search 'database' found nothing.

@mustapha-wang mustapha-wang changed the title lunr.zh.js 餐· lunr.zh.js can`t search 'database' Apr 18, 2024
@mustapha-wang
Copy link
Author

very strange,my docs have so many words "database",but,use lunr.zh.js,search 'database' found nothing.
If I use default english to index, search 'database" got many items.
image

@mustapha-wang
Copy link
Author

let lunr=require('lunr'); require("lunr-languages/lunr.stemmer.support.js")(lunr); require('lunr-languages/lunr.multi.js')(lunr); require("lunr-languages/lunr.zh.js")(lunr); let lunr_lng=lunr.multiLanguage('zh','en');

let idx=lunr(function(){ let self=this; this.use(lunr_lng);
If I use multi-language en and zh,still can`t searched 'database'.

@mustapha-wang
Copy link
Author

let lunr=require('lunr'); require("lunr-languages/lunr.stemmer.support.js")(lunr); require('lunr-languages/lunr.multi.js')(lunr); require("lunr-languages/lunr.zh.js")(lunr); let lunr_lng=lunr.multiLanguage('en','zh');

let idx=lunr(function(){ let self=this; this.use(lunr_lng);
If I use multi-language en and zh,I can searched 'database'.But can`t search any chinese key words.

@mustapha-wang
Copy link
Author

see #89
Ok,fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant