-
Notifications
You must be signed in to change notification settings - Fork 522
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
Negation operator influences other filters (stops processing of filters after it) #145
Comments
Interesting, thanks! It's a parsing precedence ambiguity bug. Look at the parse trees using explain and it becomes clear:
Basically the second one is parsed as though it was |
@jrots as for the query parsing thing, I'm not sure this necessarily constitutes a bug, I just think the precedence should be documented better, after all you can express the query as |
Just had a bit similar issue without using the negation operator -
|
yeah, it shouldn't be hard to fix. It's just a matter of rule precedence in the parser. your intuition is right. |
this also is smth weird:
|
that's because "be" is a stopword. |
alright got it :) |
actually it shouldn't be a syntax error but rather quietly ignored. I'll add that to the parser fixes. You can disable stopwords completely if you want BTW. |
The parser precedence issue still exists, but I've fixed the NOT iterator to avoid all the problems with its position in the query, and now both results are the same:
|
I'm keeping this issue open as a reminder for the parser issue |
Best explained with an example,
think the output of the two queries below should be the same.
The text was updated successfully, but these errors were encountered: