hello
I've tried setting lunr to use french language
var listSelector = ".faq"; console.log(listSelector) var searchIndex = lunr(function() { this.use(lunr.fr); this.ref('id'); this.field('question'); this.field('answer'); this.field('tags');
ANd i have thsi error in building index
lunr.stemmer.support.js:289 Uncaught TypeError: token.replace is not a function at lunr.stemmer.support.js:289 at lunr.Pipeline.run (lunr.js:674) at lunr.Builder.add (lunr.js:2478) at lunr.Builder.<anonymous> (lunrSearch.js:30) at Array.forEach (<anonymous>) at lunr.Builder.<anonymous> (lunrSearch.js:28) at lunr (lunr.js:53) at FaqSearch (lunrSearch.js:5) at faq?searchbox=acompte:2469
I don't use with npm only in browser.
Thx for help
hello I've tried setting lunr to use french language
var listSelector = ".faq"; console.log(listSelector) var searchIndex = lunr(function() { this.use(lunr.fr); this.ref('id'); this.field('question'); this.field('answer'); this.field('tags');
ANd i have thsi error in building index
lunr.stemmer.support.js:289 Uncaught TypeError: token.replace is not a function at lunr.stemmer.support.js:289 at lunr.Pipeline.run (lunr.js:674) at lunr.Builder.add (lunr.js:2478) at lunr.Builder.<anonymous> (lunrSearch.js:30) at Array.forEach (<anonymous>) at lunr.Builder.<anonymous> (lunrSearch.js:28) at lunr (lunr.js:53) at FaqSearch (lunrSearch.js:5) at faq?searchbox=acompte:2469
I don't use with npm only in browser. Thx for help