Migrating Java Rest Client to Java Api Client

After upgrading Elasticsearch to 7.16.2, Elasticsearch Java Rest Client seems to be deprecated. We are migrating to Java API client which lacks proper documentation. Please help.

The documentation of the Java API client is still a work in progress and will be improved. In the meantime, do you have a more specific question so that we can help?