Add retry and reload to elasticsearch client.