-
Notifications
You must be signed in to change notification settings - Fork 559
Open
Description
Discovered in lunr.py: yeraydiazdiaz/lunr.py#151 - but the same issue (and a similar workaround) exists in lunr.js. As noted in the example it is actually a pretty serious problem:
const lunr = require("lunr");
const index = lunr(function() {
this.field("title");
this.field("body");
this.add({
title: "To be or not to be?",
body: "That is the question!",
});
});
// Should print something, but doesn't!
console.log(index.search("What is the question?"));Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels