Access elastic search from remote api

You cannot do it via the client, you need to configure Elasticsearch directly.