DB Backup Bugfix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user