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

add is not a function #448

Closed
paopaol opened this issue Mar 21, 2020 · 2 comments
Closed

add is not a function #448

paopaol opened this issue Mar 21, 2020 · 2 comments

Comments

@paopaol
Copy link

paopaol commented Mar 21, 2020

1f81608f30ba2b187f8e15663a5e027

@rodrigorm
Copy link

The add method is defined on build and should be put inside the lunr call:

lunr(function () {
  this.add(doc);
});

@olivernn
Copy link
Owner

Since version 2 adding documents to an index must be done when defining the index, just like @rodrigorm says.

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

3 participants