Skip to content
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

Fixed QueryParsingException in multi match query #19564

Merged
merged 1 commit into from
Jul 28, 2016

Conversation

qwerty4030
Copy link
Contributor

Fixed QueryParsingException in multi match query when a wildcard expression results in no fields.
The query will now return 0 hits (null query) instead of throwing an exception. This matches the behavior if a nonexistent field is specified.
These changes were backported from latest master (mostly from #13405).

All test pass when I ran mvn clean verify

Closes #16098

…ession results in no fields.

The query will now return 0 hits (null query) instead of throwing an exception. This matches the behavior if a nonexistent field is specified.
These changes were backported from latest master (mostly from elastic#13405).
@elasticmachine
Copy link
Collaborator

Can one of the admins verify this patch?

@clintongormley clintongormley added >enhancement review :Search/Search Search-related issues that do not fall into other categories labels Jul 27, 2016
@clintongormley
Copy link

@cbuescher could you review this please?

@cbuescher cbuescher self-assigned this Jul 27, 2016
@cbuescher
Copy link
Member

cbuescher commented Jul 28, 2016

@qwerty4030 thanks for backporting this fix, LGTM. As you mentioned, this is very close to how wildcards in fieldnames are handled on master currently.
I will run the ci checks one more time an merge the PR.

@cbuescher cbuescher merged commit 06e2412 into elastic:2.4 Jul 28, 2016
@qwerty4030 qwerty4030 deleted the fix/2.4/multi_match_wildcard branch August 27, 2016 22:10
@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Query DSL labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories v2.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants