1
0
Fork 0

[graph provision] log the Solr admin application operations for alias deletion and creation

This commit is contained in:
Claudio Atzori 2024-07-15 16:30:43 +02:00
parent 3d1d8e6036
commit d20a5e020a
1 changed files with 2 additions and 0 deletions

View File

@ -128,12 +128,14 @@ public class SolrAdminApplication implements Closeable {
public SolrResponse deleteAlias(String aliasName) throws SolrServerException, IOException {
CollectionAdminRequest.DeleteAlias deleteAliasRequest = CollectionAdminRequest.deleteAlias(aliasName);
log.info("deleting alias: {}", aliasName);
return deleteAliasRequest.process(solrClient);
}
public SolrResponse createAlias(String aliasName, String collection) throws IOException, SolrServerException {
CollectionAdminRequest.CreateAlias createAliasRequest = CollectionAdminRequest
.createAlias(aliasName, collection);
log.info("creating alias: {} for collection: {}", aliasName, collection);
return createAliasRequest.process(solrClient);
}