What's Changed
Check the official release notes - in particular the breaking changes! Also we have a new Reference page.
A migration guide from version 8.x to 9.x of the client will be published soon to make the upgrade process easier.
The easiest way to setup the new 9.0.0 client is to use the new builder, as explained in the new docs:
ElasticsearchClient esClient = ElasticsearchClient.of(b -> b
.host(serverUrl)
.apiKey(apiKey)
);
Otherwise to keep using the old builder and the legacy RestClient, the elasticsearch-rest-client dependency has to be added to the project:
// gradle
implementation("org.elasticsearch.client:elasticsearch-rest-client:9.0.0")
Full Changelog: v8.18.0...v9.0.0