-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BUG] Order of logic condition alternates query result #7525
Comments
Interesting. Want to try to add a failing YAML REST test for this? |
Wrote a quick, throwaway unit test (in
The actual parsing results are broken, because the unit test mapping doesn't include The problem here seems to be the faulty syntax to match the process whose pid is 1782. The proper syntax for that is Both queries end up parsing the following four clauses:
The difference between the two queries is that the first one, I think because it sees the "AND" early on and then sees the space between two terms, ends up marking all 4 clauses as required. The It would be great if end users could see the Lucene query parsed from their OpenSearch queries, like you can with |
I'm going to close this, since mixing explicit and implicit Boolean operators is a longstanding source of undefined behavior. In this case, I believe the issue was just incorrect syntax around the @jetlime -- feel free to reopen if you think there's a bigger issue at play. Thanks! |
Describe the bug
On a get query, I do not observe the same output in function of the order of logic conditions. In the case the condition (exists:process.pid) preceeds process.pid= 1782, the query returns no single result. In the contrary, we obtain a set of hits, as it should be.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Both queries shall return the below defined answer. However only the second one returns the expected behavior.
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: