use of org.nuxeo.elasticsearch.api.ElasticSearchAdmin in project nuxeo-drive-server by nuxeo.
the class ESAuditChangeFinder method getClient.
protected ESClient getClient() {
if (esClient == null) {
ElasticSearchAdmin esa = Framework.getService(ElasticSearchAdmin.class);
esClient = esa.getClient();
}
return esClient;
}
use of org.nuxeo.elasticsearch.api.ElasticSearchAdmin in project nuxeo-drive-server by nuxeo.
the class ESAuditFeature method cleanUpAuditLog.
protected void cleanUpAuditLog() {
ElasticSearchAdmin esa = Framework.getService(ElasticSearchAdmin.class);
esa.dropAndInitIndex(esa.getIndexNameForType(ElasticSearchConstants.ENTRY_TYPE));
}
Aggregations