public interface ElasticsearchAdminService extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
createIndex(String aliasName,
boolean isAuthoring)
Creates an index
|
void |
deleteIndexes(String aliasName)
Deletes all indexes assigned to the given alias
|
void |
recreateIndex(String aliasName,
boolean isAuthoring)
Recreates an existing index
|
void |
waitUntilReady()
Checks if the Elasticsearch cluster is ready to receive requests
|
closevoid createIndex(String aliasName, boolean isAuthoring) throws ElasticsearchException
aliasName - the name of the aliasisAuthoring - indicates if the index is for authoringElasticsearchException - if there is any error during the operationvoid deleteIndexes(String aliasName) throws ElasticsearchException
aliasName - the name of the aliasElasticsearchException - if there is any error during the operationvoid recreateIndex(String aliasName, boolean isAuthoring) throws ElasticsearchException
aliasName - the name of the aliasisAuthoring - indicates if the index is for authoringElasticsearchException - if there is any error during the operationvoid waitUntilReady()
Copyright © 2023 CrafterCMS. All rights reserved.