At some point in the future, support for the [Transport Client (native Java client) will be removed](https://www.elastic.co/blog/elasticsearch-the-server). To mitigate, we need to use the HTTP API.