You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by jk...@apache.org on 2023/05/03 15:06:14 UTC
[unomi] 01/01: UNOMI-770: avoid migrating rollover indices in a previous migration scripts from 2.0.0
This is an automated email from the ASF dual-hosted git repository.
jkevan pushed a commit to branch avoidMigrateNewRolloverIndices
in repository https://gitbox.apache.org/repos/asf/unomi.git
commit 785ca62742c462180227b2869b6bcdf8160f9041
Author: Kevan <ke...@jahia.com>
AuthorDate: Wed May 3 17:05:54 2023 +0200
UNOMI-770: avoid migrating rollover indices in a previous migration scripts from 2.0.0
---
.../META-INF/cxs/migration/migrate-2.0.0-15-eventsReindex.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/shell-commands/src/main/resources/META-INF/cxs/migration/migrate-2.0.0-15-eventsReindex.groovy b/tools/shell-commands/src/main/resources/META-INF/cxs/migration/migrate-2.0.0-15-eventsReindex.groovy
index a9dc7ae1f..cb9f5ba1a 100644
--- a/tools/shell-commands/src/main/resources/META-INF/cxs/migration/migrate-2.0.0-15-eventsReindex.groovy
+++ b/tools/shell-commands/src/main/resources/META-INF/cxs/migration/migrate-2.0.0-15-eventsReindex.groovy
@@ -33,7 +33,7 @@ String baseSettings = MigrationUtils.resourceAsString(bundleContext, "requestBod
String reIndexScript = MigrationUtils.getFileWithoutComments(bundleContext, "requestBody/2.0.0/event_migrate.painless");
String mapping = MigrationUtils.extractMappingFromBundles(bundleContext, "event.json")
String newIndexSettings = MigrationUtils.buildIndexCreationRequest(baseSettings, mapping, context, true)
-Set<String> eventIndices = MigrationUtils.getIndexesPrefixedBy(context.getHttpClient(), esAddress, "${indexPrefix}-event-")
+Set<String> eventIndices = MigrationUtils.getIndexesPrefixedBy(context.getHttpClient(), esAddress, "${indexPrefix}-event-date-")
eventIndices.each { eventIndex ->
MigrationUtils.reIndex(context.getHttpClient(), bundleContext, esAddress, eventIndex, newIndexSettings, reIndexScript, context)
}
\ No newline at end of file