-
Notifications
You must be signed in to change notification settings - Fork 371
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
Parse error on john AND -doe
#4541
Comments
tantivy's strict query parser doesn't allow mixing boolean expr keywords (AND/OR) with occurs symbols (+/-) |
Okay,thanks @trinity-1686a, that explains it. Should we outline the limitation in the docs ? |
@trinity-1686a could we allow this in the non-lenient parser? It seems unambiguous. |
@ddelemeny if it stays that way, probably @fulmicoton previously we didn't have any logic to manage that kind of situation, now that we have (for the purpose of the lenient parser), having it for the strict parser sounds like a good idea. |
+1 to handle that in the strict parser. |
Describe the bug
From quickwit-oss/quickwit-datasource#56
Quickwit fails to parse
john AND -doe
:However, the equivalent following queries parse correctly
john AND (-doe)
john -doe
john AND NOT doe
Configuration:
Quickwit 0.7.1 (0.7.1 2024-02-07T11:47:08Z)
The text was updated successfully, but these errors were encountered: