public interface ElasticsearchAdminService
| Modifier and Type | Method and Description |
|---|---|
void |
createIndex(String indexName,
boolean isAuthoring)
Creates an index
|
void |
deleteIndex(String indexName)
Deletes an index
|
boolean |
exists(String indexName)
Check if an index already exists
|
boolean exists(String indexName) throws ElasticsearchException
indexName - the name of the indexElasticsearchException - if there is any error during the operationvoid createIndex(String indexName, boolean isAuthoring) throws ElasticsearchException
indexName - the name of the indexisAuthoring - indicates if the index if for authoringElasticsearchException - if there is any error during the operationvoid deleteIndex(String indexName) throws ElasticsearchException
indexName - the name of the indexElasticsearchException - if there is any error during the operationCopyright © 2020 CrafterCMS. All rights reserved.