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
simple_query_string returns nothing for "*" search #10632
Comments
I believe this may be related to #9866, which was fixed in Lucene 5.1 (see: https://issues.apache.org/jira/browse/LUCENE-6298). I'll look and see whether it is the same issue. |
My Lucene version is 4.10.4. What should happen if I search "*" with a simple_query_string? |
This has been fixed. * will return all docs |
Thank you! |
Actually, this search:
returns nothing with Elasticsearch 2.2 @clintongormley is the fix for this issue released? |
Initially I thought this might be related to #13214 but no, a query string of
The explanation returned by the last request is simply |
I looked into this a bit by adding an IT test. It looks like Lucenes SimpleQueryParser only recognizes a terms with a closing '*' as prefix query. A single wildcard without leading charactes is treated as a regular term in SimpleQueryParser#consumeToken(). This might even be the intended behaviour. For |
@cbuescher personally I think a SQS query for |
@clintongormley ahh okay, in light of that discussion:
Since
Do you think that'd be a better solution? |
@dakrone Given that the end user can't specify fields in the SQS like you can in QS ( |
I opened https://issues.apache.org/jira/browse/LUCENE-7490 for this with a patch |
Looks like this will be in Lucene 6.3, so I'm marking this as "stalled" until 6.3 is released and incorporated. |
I think this issue has been solved with ES 5.3 |
@weberhofer thanks a lot, I just checked with 5.1 (which is based in Lucene 6.3) and 5.2 and it seems to be fixed. I will close this. |
My simple_query_string returns nothing with "*" search.
If I use a query_string, it works (it returns hits).
The fields and analyzer are the same.
If I wrap my simple_query_string with a bool+must (or should) query, it works. (???)
Is it a bug?
Elasticsearch version: 1.5.1
The text was updated successfully, but these errors were encountered: