created a custom ElasticSearch client
refactored the ElasticSearch classes to use the new custom client