support for multiple elasticsearch endpoints