From 938eee80a90807a62e136accd0da4a6d21c6ece3 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Fri, 12 Jul 2024 10:52:58 -0400 Subject: [PATCH] only include pages in index if they do not have any modules --- Oqtane.Server/Infrastructure/Jobs/SearchIndexJob.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);