ElasticSearch demo with JavaAPI