-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Deprecate Indices query #17710
Deprecate Indices query #17710
Conversation
This is in favour of just searching the _index field Closes #12017
This looks good to me. Let's maybe add a concrete example to the docs that shows how an IndicesQuery can be replaced with a BooleanQuery using the |
Hmmm... not quite replaceable. Queries in the indices query are only parsed on the listed indices - the same is not true for bool, eg, this example creates a parent mapping on one index, but not the other:
The
While this query will throw an exception about missing the parent type:
That's why this change depends on #12016 |
@clintongormley now we have #17751 and #17748 to deal with the above, are you ok for me to merge this? |
+1 |
The indices query is deprecated since 5.0.0 (elastic#17710). It can now be removed in master (future 6.0 version).
The indices query is deprecated since 5.0.0 (#17710). It can now be removed in master (future 6.0 version).
This is in favour of just searching the _index field
Closes #12017