Closed paopaol closed 4 years ago
The add
method is defined on build and should be put inside the lunr
call:
lunr(function () {
this.add(doc);
});
Since version 2 adding documents to an index must be done when defining the index, just like @rodrigorm says.