Search in sources :

Example 1 with GetTemplate

use of io.searchbox.indices.template.GetTemplate in project graylog2-server by Graylog2.

the class ClientES6 method templateExists.

@Override
public boolean templateExists(String templateName) {
    final GetTemplate templateRequest = new GetTemplate.Builder(templateName).build();
    final JestResult templateResponse = execute(templateRequest, "failed to get template " + templateName);
    return templateResponse.isSucceeded();
}
Also used : GetTemplate(io.searchbox.indices.template.GetTemplate) JestResult(io.searchbox.client.JestResult)

Aggregations

JestResult (io.searchbox.client.JestResult)1 GetTemplate (io.searchbox.indices.template.GetTemplate)1