-
Notifications
You must be signed in to change notification settings - Fork 5
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
Upgrade ES client python library to 8.x #200
Comments
Hello! As the Python clients maintainer, I would definitely recommend upgrading elasticsearch-py itself. The transport library is more of a building block to allow building other client libraries, and will be more difficult to use. I've also recently worked on making upgrading elasticsearch-py easier, see https://discuss.elastic.co/t/dec-13th-2023-en-10-reasons-to-upgrade-to-elasticsearch-py-8-x/347292 (item 4 in particular). The trick is waiting for elasticsearch-py 8.12 which should be out by the end of the week. |
Thanks Quentin! Peek does not use the query DSL so that I felt it might only need the transport library. In today's version, it reaches out to the transport field of the ES client object to perform request directly, e.g.: Lines 110 to 111 in 81faa51
Given the above, do you still recommend elasticsearch-py over the transport library? Thanks Btw, the end of this week sounds a perfect timing since spacetime is next week :) |
Oh, interesting. In that case, the bulk of the work will be instantiating a NodeConfig which is the main way Transport is configured. In practice, to use the transport library, you will need to:
Also note that as part of the upgrade, regardless of the library you use (transport or full client) you will have to:
|
Upgrade the dependency to version 8 from 7. The dependency is now on the lower level transport library (elastic_transport) instead of the high level library (elasticsearch-py) since Peek does not use high level DSL. Resolves: #200
Thanks for the pointers, Quentin! The upgrade is now done with I kept |
Awesome! Right, for |
We are still using 7.17. It is time to upgrade to 8.x for either the full client library or just the transport library.
The text was updated successfully, but these errors were encountered: