MihaiValentin / lunr-languages

A collection of languages stemmers and stopwords for Lunr Javascript library
Other
432 stars 162 forks source link

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

Open mustapha-wang opened 7 months ago

mustapha-wang commented 7 months ago

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

mustapha-wang commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

see https://github.com/MihaiValentin/lunr-languages/issues/89 Ok,fixed.