DB Backup Bugfix
This commit is contained in:
@@ -165,11 +165,13 @@ public class DatabaseManagementService {
|
|||||||
|
|
||||||
// Reindex search after successful restore
|
// Reindex search after successful restore
|
||||||
try {
|
try {
|
||||||
// Note: Manual reindexing may be needed after restore
|
System.err.println("Starting Typesense reindex after successful restore...");
|
||||||
// The search indices will need to be rebuilt through the settings page
|
typesenseService.recreateCollections();
|
||||||
|
System.err.println("Typesense reindex completed successfully.");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// Log the error but don't fail the restore
|
// 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) {
|
} catch (SQLException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user