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 Client.prepareIndex(index, type, id) method #48443
Remove Client.prepareIndex(index, type, id) method #48443
Conversation
…ction' into types-removal/bulk-request-action
Pinging @elastic/es-core-infra (:Core/Infra/Transport API) |
Pinging @elastic/es-distributed (:Distributed/CRUD) |
@elasticmachine run elasticsearch-ci/2 |
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.
LGTM. Note on terminology: the change here is not to the "transport client", as that has been removed. This is to the Client interface, which is essentially now just the node client (the client nodes use to communicate with each other, over the transport protocol, but sometimes also does local node requests).
Thanks @rjernst, I've updated the description and title accordingly |
As types are no longer used in index requests, we can remove the type parameter
from prepareIndex methods in the Client interface. However, just changing the signature
of
prepareIndex(index, type, id)
toprepareIndex(index, id)
risks confusion whenupgrading with the previous (now removed)
prepareIndex(index, type)
method -just changing the dependency version of java code would end up silently changing the
semantics of the method call. Instead we should just remove this method entirely, and
replace it by calling
prepareIndex(index).setId(id)