diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/util/OpenMetadataOperations.java b/openmetadata-service/src/main/java/org/openmetadata/service/util/OpenMetadataOperations.java index 9cf78313a50..3da636ea4b1 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/util/OpenMetadataOperations.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/util/OpenMetadataOperations.java @@ -181,6 +181,8 @@ public class OpenMetadataOperations implements Callable { 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 { parseConfig(); flyway.migrate(); validateAndRunSystemDataMigrations(force); + LOG.info("Update Search Indexes."); + searchRepository.updateIndexes(); printChangeLog(); return 0; } catch (Exception e) {