Search in sources :

Example 1 with ElasticSearchAdmin

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;
}
Also used : ElasticSearchAdmin(org.nuxeo.elasticsearch.api.ElasticSearchAdmin)

Example 2 with ElasticSearchAdmin

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));
}
Also used : ElasticSearchAdmin(org.nuxeo.elasticsearch.api.ElasticSearchAdmin)

Aggregations

ElasticSearchAdmin (org.nuxeo.elasticsearch.api.ElasticSearchAdmin)2