Skip to content

Conversation

@cbuescher
Copy link
Member

Disabling the query_string queries allow_leading_wildcard parameter didn't
work after a change probably introduced in #60959 because the various field types
wildcardQuery don't check the leading characters like
QueryParserBase#getWildcardQuery does. This PR adds the missing check also
before calling the field types wildcard generating method.

Closes #62267

Disabling the `query_string` queries `allow_leading_wildcard` parameter didn't
work after a change probably introduced in elastic#60959 because the various field types
`wildcardQuery` don't check the leading characters like
QueryParserBase#getWildcardQuery does. This PR adds the missing check also
before calling the field types wildcard generating method.

Closes elastic#62267
@cbuescher cbuescher changed the title Backport 62300 7.9 Fix disabling allow_leading_wildcard (#62300) Sep 14, 2020
@cbuescher
Copy link
Member Author

@elasticmachine run elasticsearch-ci/2

@cbuescher cbuescher merged commit 953f5cf into elastic:7.9 Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant