diff --git a/Oqtane.Server/Infrastructure/Jobs/SearchIndexJob.cs b/Oqtane.Server/Infrastructure/Jobs/SearchIndexJob.cs index 8af8ce7d..0374a850 100644 --- a/Oqtane.Server/Infrastructure/Jobs/SearchIndexJob.cs +++ b/Oqtane.Server/Infrastructure/Jobs/SearchIndexJob.cs @@ -97,7 +97,7 @@ namespace Oqtane.Infrastructure ContentModifiedOn = page.ModifiedOn, AdditionalContent = string.Empty, CreatedOn = DateTime.UtcNow, - IsDeleted = removed, + IsDeleted = (removed || pageModules.Any(item => item.PageId == page.PageId)), TenantId = tenantId }; searchContents.Add(searchContent);