Implemented ElasticSearch functionality