-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Wrong result of "simple_query_search" with prefix query. #28204
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
Comments
I was able to reproduce this on ES 6.1.0 and 6.1.1, for some reason it's being rewritten to For the meantime, |
This change converts any exception that occurs during the parsing of a simple_query_string to a match_no_docs query (instead of a null query) when leniency is activated. Closes elastic#28204
@jimczi I've built elasticsearch from your branch 'bugs/lenient_simple_query_string' and I run steps to reproduce the bug and nothing changes from my perspective. The response is still 0 documents instead of 1 document found. I've noticed that the only change is in "explanation.description" in response of
|
You're right @lbrzekowski, my fix was only to get the expected exceptions. I pushed another commit to continue with the other fields when leniency is on and we hit an exception on a field. |
This change converts any exception that occurs during the parsing of a simple_query_string to a match_no_docs query (instead of a null query) when leniency is activated. Closes #28204
This change converts any exception that occurs during the parsing of a simple_query_string to a match_no_docs query (instead of a null query) when leniency is activated. Closes #28204
Elasticsearch version
6.1.0
Plugins installed: []
JVM version (
java -version
):java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
OS version:
Ubuntu 17.10 with 4.13.0-21-generic
Description of the problem including expected versus actual behavior:
When index's mapping includes text and date properties, result of simple_query_search, which includes asterisk for prefix query,
returns no documents.
When there's no date properties on index's mappping, query works fine.
The same query works fine on 5.6 version.
Steps to reproduce:
Received result: no documents found
Expected result: document with id 1 found
Provide logs (if relevant):
there's no errors on logs
The text was updated successfully, but these errors were encountered: