Fixing ElasticClient exception and making getFromElasticSearch method return Future