Merge branch 'pr9137' into temp_8879

This commit is contained in:
Dave Woestenborghs
2020-10-12 16:14:11 +02:00
4 changed files with 31 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ namespace Umbraco.Examine
/// <summary>
/// Performs the data lookups required to rebuild a content index
/// </summary>
public class ContentIndexPopulator : IndexPopulator<IUmbracoContentIndex>
public class ContentIndexPopulator : IndexPopulator<IUmbracoContentIndex2>
{
private readonly IContentService _contentService;
private readonly IValueSetBuilder<IContent> _contentValueSetBuilder;
@@ -59,6 +59,12 @@ namespace Umbraco.Examine
_parentId = parentId;
}
public override bool IsRegistered(IUmbracoContentIndex2 index)
{
// check if it should populate based on published values
return _publishedValuesOnly == index.PublishedValuesOnly;
}
protected override void PopulateIndexes(IReadOnlyList<IIndex> indexes)
{
if (indexes.Count == 0) return;