Add support for custom ElasticSearch configuration