Skip to content

Conversation

@markharwood
Copy link
Contributor

Additional tests to follow - just checking this change doesn’t break existing tests here.
I have BWC concerns re forced user choices of analyzer.

Closes #60957

Tests to follow - just checking this doesn’t break things here

Closes elastic#60957
@markharwood markharwood requested a review from jimczi August 11, 2020 17:13
Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left one comment regarding the test, LGTM otherwise

track_total_hits: true
query:
query_string:
query: "hello*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a prefix query ?

@markharwood markharwood merged commit 4bb5b36 into elastic:master Aug 12, 2020
markharwood added a commit to markharwood/elasticsearch that referenced this pull request Aug 12, 2020
…ard fields (elastic#60959)

The Query string parser was not delegating the construction of wildcard/regex queries to the underlying field type.
The wildcard field has special data structures and queries that operate on them so cannot rely on the basic regex/wildcard queries that were being used for other fields.

Closes elastic#60957
markharwood added a commit that referenced this pull request Aug 12, 2020
…ard fields (#60959) (#61010)

The Query string parser was not delegating the construction of wildcard/regex queries to the underlying field type.
The wildcard field has special data structures and queries that operate on them so cannot rely on the basic regex/wildcard queries that were being used for other fields.

Closes #60957
markharwood added a commit to markharwood/elasticsearch that referenced this pull request Aug 12, 2020
…ard fields (elastic#60959)

The Query string parser was not delegating the construction of wildcard/regex queries to the underlying field type.
The wildcard field has special data structures and queries that operate on them so cannot rely on the basic regex/wildcard queries that were being used for other fields.

Closes elastic#60957
markharwood added a commit that referenced this pull request Aug 12, 2020
…ard fields (#60959) (#61013)

The Query string parser was not delegating the construction of wildcard/regex queries to the underlying field type.
The wildcard field has special data structures and queries that operate on them so cannot rely on the basic regex/wildcard queries that were being used for other fields.

Closes #60957
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this pull request Sep 14, 2020
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 pushed a commit that referenced this pull request Sep 14, 2020
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
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this pull request Sep 14, 2020
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 pushed a commit to cbuescher/elasticsearch that referenced this pull request Sep 14, 2020
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 pushed a commit that referenced this pull request Sep 14, 2020
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
cbuescher pushed a commit that referenced this pull request Sep 16, 2020
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

query_string regex searches not working on wildcard fields..

3 participants