-
Notifications
You must be signed in to change notification settings - Fork 547
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
Search on field with AND #344
Comments
First, check what version of Lunr you are using, term presence queries are only supported in version 2.2 and up. Second, I think there might be a bug, you can try this out on the demo site: Searching for documents with alan AND skylab: I'll take a closer look at this, thanks for reporting. |
Thank you for this quick answer. |
Yeah, 2.1.5 does not have term presence support, you will need to upgrade to 2.2.0 to get term presence support. |
Hi, Then, the version 2.1.5 is installed. How can I install lunr 2.2.0 for node.js? |
Lunr 2.2.0 is definitely on npm and tagged as latest, perhaps you have some kind of npm proxy/mirror that hasn't been updated? |
I successfully installed Lunr 2.2.0. |
I've just pushed 2.2.1 with a fix for the bug that caused the issues mentioned here, please take a look and let me know if you run into problems. |
Hi, This works well. |
As documented (https://lunrjs.com/guides/searching.html):
I would like to search all documents having 'tags:foo' AND containing 'bar'.
I tried:
How should I do?
Is it a bug.
The text was updated successfully, but these errors were encountered: