Add createIndex/updateIndex to openmetadata-ops.sh (#15137)

This commit is contained in:
Sriharsha Chintalapani 2024-02-12 00:32:54 -08:00 committed by GitHub
parent 6cfa9863c4
commit 382bd61404
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -181,6 +181,8 @@ public class OpenMetadataOperations implements Callable<Integer> {
flyway.migrate();
validateAndRunSystemDataMigrations(true);
LOG.info("OpenMetadata Database Schema is Updated.");
LOG.info("create indexes.");
searchRepository.createIndexes();
return 0;
} catch (Exception e) {
LOG.error("Failed to drop create due to ", e);
@ -202,6 +204,8 @@ public class OpenMetadataOperations implements Callable<Integer> {
parseConfig();
flyway.migrate();
validateAndRunSystemDataMigrations(force);
LOG.info("Update Search Indexes.");
searchRepository.updateIndexes();
printChangeLog();
return 0;
} catch (Exception e) {