Migrate from the Elasticsearch high level REST client to the Java API Client

Proprietary

Migrates a repository from the Elasticsearch 7 RestHighLevelClient to the Elasticsearch 8 Java API Client: first its code, and then its dependencies, from org.elasticsearch.client:elasticsearch-rest-high-level-client to co.elastic.clients:elasticsearch-java. A repository changes only when all of its uses of the high level client can be translated, and the uses that cannot be translated yet are listed in a data table instead. The migrated code talks to Elasticsearch 8 servers, which the high level client 7.17 also talks to in its compatibility mode, so the servers can be upgraded first.

io.moderne.elastic.elastic8.MigrateToJavaApiClient
mod run . --recipe=io.moderne.elastic.elastic8.MigrateToJavaApiClient

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.