use of org.elasticsearch.client.indices.GetIndexTemplatesResponse in project hopsworks by logicalclocks.
the class ElasticClientController method templateGet.
public GetIndexTemplatesResponse templateGet(String template) throws ElasticException {
GetIndexTemplatesRequest request = new GetIndexTemplatesRequest(template);
FailableSupplier<GetIndexTemplatesResponse> query = () -> client.getClient().indices().getIndexTemplate(request, RequestOptions.DEFAULT);
return executeElasticQuery(query, "elastic get template", request.toString());
}
Aggregations