From 4db30c24c825c57b3c2d7c0d45ccbdb7d62947e1 Mon Sep 17 00:00:00 2001 From: Dave Woestenborghs Date: Mon, 12 Oct 2020 16:17:38 +0200 Subject: [PATCH] Added some more comments --- src/Umbraco.Examine/ContentIndexPopulator.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Umbraco.Examine/ContentIndexPopulator.cs b/src/Umbraco.Examine/ContentIndexPopulator.cs index e9de19d137..8a137251a4 100644 --- a/src/Umbraco.Examine/ContentIndexPopulator.cs +++ b/src/Umbraco.Examine/ContentIndexPopulator.cs @@ -139,6 +139,7 @@ namespace Umbraco.Examine } // get content per level so we can filter the pages that don't have a published parent + // this because the paged descendants method does not take unpublished ancestors into account for (var level = 2; level <= maxLevel; level++) { var levelContent = content.Where(x => x.Level == level && publishedPages.Contains(x.ParentId));