WARNING: Deprecated in 7.15.0.
The Java REST Client is deprecated in favor of the Java API Client.
Migration Guideedit
This section describes how to migrate existing code from the TransportClient
to the Java High Level REST Client released with the version 5.6.0
of Elasticsearch.