Skip to content
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

Support new ElasticsearchClient #28597

Closed
bclozel opened this issue Nov 10, 2021 · 3 comments
Closed

Support new ElasticsearchClient #28597

bclozel opened this issue Nov 10, 2021 · 3 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@bclozel
Copy link
Member

bclozel commented Nov 10, 2021

As discussed in #28496, we'd like to add dependency management and auto-configuration for the new ElasticsearchClient.
Support for the former RestHighLevelClient will be deprecated as a result.

@wilkinsona
Copy link
Member

wilkinsona commented Jan 19, 2022

This will have to wait until Spring Boot 3.0 as the new client uses JSON-B 2.0 which is part of Jakarta EE 9.

@dawi
Copy link

dawi commented Feb 10, 2022

But jakarta.json.bind-api is a compileOnly dependency and as such it should only be used during source compilation and it shouldn't be included in the runtime classpath.

@wilkinsona
Copy link
Member

I believe that arrangement is because it's optional at runtime and not because it's never used at runtime. That optional dependency is still enough to prevent its use in Spring Boot 2.x where, if JSON-B is used, it must be 1.x with javax.json packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants