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

Reject regexp queries on the _index field. #46945

Merged
merged 1 commit into from
Sep 24, 2019

Conversation

jtibshirani
Copy link
Contributor

@jtibshirani jtibshirani commented Sep 20, 2019

We speculatively added support for regexp queries on the _index field in #34089 (this functionality was not actually requested by a user). Supporting regex logic adds complexity to the _index field for not much gain, so we would like to remove it.

From an end-to-end test it turns out this functionality never even worked in the first place because of an error in how regex flags were interpreted! For this reason, we can remove support for regexp on _index without a deprecation period.

Relates to #46640.

@jtibshirani jtibshirani added :Search/Search Search-related issues that do not fall into other categories >deprecation v8.0.0 v7.5.0 labels Sep 20, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

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.

LGTM

@jtibshirani
Copy link
Contributor Author

Thanks for the review!

@jtibshirani jtibshirani merged commit b6454e9 into elastic:master Sep 24, 2019
@jtibshirani jtibshirani deleted the remove-regex-query branch September 24, 2019 18:40
jtibshirani added a commit that referenced this pull request Sep 24, 2019
We speculatively added support for `regexp` queries on the `_index` field in
#34089 (this functionality was not actually requested by a user). Supporting
regex logic adds complexity to the `_index` field for not much gain, so we
would like to remove it.

From an end-to-end test it turns out this functionality never even worked in
the first place because of an error in how regex flags were interpreted! For
this reason, we can remove support for `regexp` on `_index` without a
deprecation period.

Relates to #46640.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>deprecation :Search/Search Search-related issues that do not fall into other categories v7.5.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants