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

problem with FR #58

Open
dorel14 opened this issue Sep 16, 2019 · 2 comments
Open

problem with FR #58

dorel14 opened this issue Sep 16, 2019 · 2 comments

Comments

@dorel14
Copy link

dorel14 commented Sep 16, 2019

Hello i've tried integrate lunr-fr in my project and i have this message in console

lunr.SortedSet is not a constructor

my lunr version is 2.3.6

@alexander-ladygin
Copy link

Hello i've tried integrate lunr-fr in my project and i have this message in console

lunr.SortedSet is not a constructor

my lunr version is 2.3.6

Did you solve the problem?

@alexander-ladygin
Copy link

The problem was solved as follows: lurn connected using the webpack, installed from npm [packages: lurn, lurn-languages], after which everything worked.

And I connected only 1 language (not "en"), it did not work, as soon as I connected several languages (in my case, "ru"), then everything worked.

var lunr = require("lunr")
require("lunr-languages/lunr.stemmer.support")(lunr)
require('lunr-languages/lunr.multi')(lunr)
require("lunr-languages/lunr.ru")(lunr)

var idx = lunr(function () {
  this.use(lunr.multiLanguage('en', 'ru'))
})

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

2 participants