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

Restore special case for wilcard on _all query to rewrite to a match all query #23967

Merged
merged 2 commits into from
Apr 7, 2017
Merged

Restore special case for wilcard on _all query to rewrite to a match all query #23967

merged 2 commits into from
Apr 7, 2017

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Apr 7, 2017

This change restores the rewrite to a match all query that we used to apply on wildcard query * on the query_string parser before #23433.

@jimczi jimczi added :Internal :Search/Search Search-related issues that do not fall into other categories v5.4.0 v6.0.0-alpha1 labels Apr 7, 2017
Copy link
Contributor

@jpountz jpountz left a comment

Choose a reason for hiding this comment

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

LGTM

* We rewrite _all:* to a match all query.
* TODO: We can remove this special case when _all is completely removed.
*/
if ("*".equals(field) || "_all".equals(field)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use the AllFieldMapper.NAME constant?

@jimczi jimczi merged commit 0821fa2 into elastic:master Apr 7, 2017
@jimczi jimczi deleted the all_field_wildcard branch April 7, 2017 13:15
jimczi added a commit that referenced this pull request Apr 7, 2017
…all query (#23967)

This change restores the rewrite to a match all query that we used to apply on wildcard query * on the query_string parser before #23433.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :Search/Search Search-related issues that do not fall into other categories v5.4.0 v6.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants