Major restructuring, removed searchdomain field from Entity/Index, moved embeddingcache to SearchdomainManager, improved logging

This commit is contained in:
2025-06-22 02:11:09 +02:00
parent d2f4210e72
commit 9a6ee4ad75
9 changed files with 365 additions and 273 deletions

View File

@@ -1,3 +1,4 @@
using ElmahCore;
using Microsoft.AspNetCore.Mvc;
using Server.Models;
@@ -58,11 +59,13 @@ public class SearchdomainController : ControllerBase
{
success = true;
deletedEntries = _domainManager.DeleteSearchdomain(searchdomain);
} catch (Exception)
}
catch (Exception ex)
{
_logger.LogError("Unable to delete searchdomain {searchdomain}", [searchdomain]);
success = false;
deletedEntries = 0;
ElmahExtensions.RaiseError(ex);
}
return Ok(new SearchdomainDeleteResults(){Success = success, DeletedEntities = deletedEntries});
}