-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update Elasticsearch client to version 9.x #3110
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
Comments
Hi Laura, thank you very much, I really appreciate your support. As we had version 5.5 released yesterday, we now can go forward to integrate Elasticsearch 9 for the next release in autumn. I hope I'll find the time this weekend to have a look at your changes, and see how this fits in - I'm thinking about backwards compatibility, how to provide the new client, what to do if users were currently providing their own RestClient bean and things like that. As this is not my daytime job and I got some other hobbies as well, it might take some days... |
Hello, thanks for the quick reply! And no worries there's no rush :) also there's no plan on doing any other major changes for a while, so this is just early planning.
I will do more testing to see if there are more issues, but all other breaking changes I already took care of in the draft. Let me know if there's more info I can provide! |
So I finally found time. This looks real good for me, please create a PR. You will have to rebase on main and then should notice a failing test, because Spring 7 and Spring Data from the next release on - which will be in November - move to jspecify for nullability annotations. Adaptions there should be easy, the project now is migrated. I like that this change is basically the minimal step to use ES client 9, there are breaking changes, but that's ok. The documentation needs to be adapted, but with this one, we could already switch to ES 9 on the main branch. As to your questions:
Another thing I came across yesterday (read #3113 for more info): Do you plan to upgrade the client to use jackson 3? |
Here's the PR! I'll open another one for the new RestClient once I figure out the necessary bom/boot updates ^^" |
The Elasticsearch java client released a new major version 9.0, introducing a number of breaking changes that will affect this and other spring projects.
I have a draft ready with the minimal changes to make spring-data-elasticsearch work with version 9.0.1 of the client; I'd like to open a PR where we could discuss those and other possible changes, which could be part of the next major release of spring-data-elasticsearch.
Disclaimer: I am one of the maintainer of https://github.com/elastic/elasticsearch-java
The text was updated successfully, but these errors were encountered: