The current API documentation for the ElasticSearch Java Client is woefully inadequate.
First of all, there is no JavaDoc. Luckily I found some at https://www.javadoc.io/doc/org.elasticsearch/elasticsearch/2.3.0
The tuorials don't provide any of the import
statements, which makes it next to impossible to use.
For example, the TransportClient documentation contains the following code snippet: