GetIndexRequest request = new GetIndexRequest().indices("*"); GetIndexResponse response = client.indices().get(request, RequestOptions.DEFAULT); String[] indices = response.getIndices();