Can't get started with the ElasticSearch Java API classes

Nevermind. The Class not found error was a problem with the way I was packaging my app.

So, in summary, to get started:

  • Don't use the latest version of elasticearch-java because there doesn't seem to be a Maven artifact for that versoin.
  • Include dependency elasticsearch-rest-client as well as elastic-java