use of org.elasticsearch.action.admin.indices.settings.get.GetSettingsRequest in project spring-data-elasticsearch by spring-projects.
the class RestIndexTemplate method doGetSettings.
@Override
protected Settings doGetSettings(IndexCoordinates index, boolean includeDefaults) {
Assert.notNull(index, "index must not be null");
GetSettingsRequest getSettingsRequest = requestFactory.getSettingsRequest(index, includeDefaults);
GetSettingsResponse response = restTemplate.execute(client -> //
client.indices().getSettings(getSettingsRequest, RequestOptions.DEFAULT));
return ResponseConverter.fromSettingsResponse(response, getSettingsRequest.indices()[0]);
}
Aggregations