MihaiValentin/lunr-languages

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

Opened this issue · 4 comments

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

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

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'.

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.

see #89
Ok,fixed.