-
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
Remove types from explain API #46926
Remove types from explain API #46926
Conversation
Pinging @elastic/es-search |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, I just had a small comment.
public ExplainRequest(String index, String id) { | ||
this.index = index; | ||
this.id = id; | ||
} | ||
|
||
ExplainRequest(StreamInput in) throws IOException { | ||
super(in); | ||
type = in.readString(); | ||
if (in.getVersion().before(Version.V_8_0_0)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be safe, we could read the type but assert that it is _doc
(similarly to what we did in #42198).
@elasticmachine update branch |
We no longer need a type to get the source of a document, so we can remove it from
the explain API as well.
Relates to #41059