-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Review Elasticsearch clients support #15008
Comments
Please note that High-Level REST Client support is sort of experimental right now. With Spring Data Moore we're going to evolve REST support to be production ready. Once this is in place, we will consider deprecating the Transport Client so we can remove it in Moore+1 or Moore+2. |
For Boot 2.2, we should deprecate the transport client and rather use the HTTP-based client. Elasticsearch 3.2.0 will contain also a reactive ES client (using |
Spring Boot 2.2 M1 lacks auto-configuration for reactive data Elasticsearch, currently I have to enable it maunally. And the latest Spring data Elasticsearch(Moore) has included reactive repository and template APIs. |
After reviewing the current situation, I think Spring Boot 2.2.0 should do the following:
|
@bclozel some food for thoughts about point
The only drawbacks I can see for now is that you can't use a 7.x client with a 6.x server. Which means that Spring would have to provide the right "client"... Making things a bit complex may as per my personal project here. |
Thanks @dadoonet ! Spring Boot is managing elasticsearch dependencies to avoid mismatches in applications - developers can choose the elasticsearch version by changing a property in their build. We'll have to make tough calls when it comes to choosing the right Elasticsearch version when upgrading. We're always in touch with the Spring Data team and we're following closely Elasticsearch's roadmap. For Spring Boot 2.2.0, we'll probably stick to Elasticsearch 6.7 and upgrade to 7.0 when the whole ecosystem has caught up. |
Thanks @bclozel for the link to the documentation. We are starting to get a lot of questions about this problem in our forums, so I'm now linking to it to explain the workaround. |
As seen in #9379 and #12600, we need to consider our options for ElasticSearch clients and whether we should deprecate the native client since Spring Data ElasticSearch will support the high level rest client in the next Moore release train.
The text was updated successfully, but these errors were encountered: