DB Backup Bugfix

This commit is contained in:
Stefan Hardegger
2025-07-31 08:36:33 +02:00
parent 7227061d25
commit b0c14d4b37

View File

@@ -165,11 +165,13 @@ public class DatabaseManagementService {
// Reindex search after successful restore
try {
// Note: Manual reindexing may be needed after restore
// The search indices will need to be rebuilt through the settings page
System.err.println("Starting Typesense reindex after successful restore...");
typesenseService.recreateCollections();
System.err.println("Typesense reindex completed successfully.");
} catch (Exception e) {
// Log the error but don't fail the restore
System.err.println("Warning: Search indices may need manual reindexing after restore");
System.err.println("Warning: Failed to reindex Typesense after restore: " + e.getMessage());
e.printStackTrace();
}
} catch (SQLException e) {