You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a minimal example to show the problem, which I think you'll agree is pretty serious:
fromlunrimportlunrindex=lunr(
ref="id",
fields=["title", "body"],
documents=[
{"id": "1", "title": "To be or not to be?", "body": "That is the question!"}
],
)
print(index.search("What is the question?")) # Should print something, but doesn't!
They are not added, which will definitely cause problems with recall in the case where users add punctuation to their queries.
Unfortunately, this is a bug-compatibility with lunr.js issue: https://github.com/olivernn/lunr.js/blob/aa5a878f62a6bba1e8e5b95714899e17e8150b38/lunr.js#L49
But it should be documented and there should be a documented way to work around it. This is pretty easy:
The text was updated successfully, but these errors were encountered: