View Source
Class ContentIndexPopulator
Performs the data lookups required to rebuild a content index
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class ContentIndexPopulator : IndexPopulator<IUmbracoContentIndex>, IIndexPopulator
Constructors
View Source
ContentIndexPopulator(ILogger<ContentIndexPopulator>, Boolean, Nullable<Int32>, IContentService, IUmbracoDatabaseFactory, IValueSetBuilder<IContent>)
Optional constructor allowing specifying custom query parameters
Declaration
public ContentIndexPopulator(ILogger<ContentIndexPopulator> logger, bool publishedValuesOnly, int? parentId, IContentService contentService, IUmbracoDatabaseFactory umbracoDatabaseFactory, IValueSetBuilder<IContent> contentValueSetBuilder)
Parameters
View Source
ContentIndexPopulator(ILogger<ContentIndexPopulator>, IContentService, IUmbracoDatabaseFactory, IContentValueSetBuilder)
Default constructor to lookup all content data
Declaration
public ContentIndexPopulator(ILogger<ContentIndexPopulator> logger, IContentService contentService, IUmbracoDatabaseFactory umbracoDatabaseFactory, IContentValueSetBuilder contentValueSetBuilder)
Parameters
Methods
View Source
IndexAllContent(Int32, Int32, Int32, IReadOnlyList<IIndex>)
Declaration
protected void IndexAllContent(int contentParentId, int pageIndex, int pageSize, IReadOnlyList<IIndex> indexes)
Parameters
Type |
Name |
Description |
System.Int32 |
contentParentId |
|
System.Int32 |
pageIndex |
|
System.Int32 |
pageSize |
|
IReadOnlyList<IIndex> |
indexes |
|
View Source
IndexPublishedContent(Int32, Int32, Int32, IReadOnlyList<IIndex>)
Declaration
protected void IndexPublishedContent(int contentParentId, int pageIndex, int pageSize, IReadOnlyList<IIndex> indexes)
Parameters
Type |
Name |
Description |
System.Int32 |
contentParentId |
|
System.Int32 |
pageIndex |
|
System.Int32 |
pageSize |
|
IReadOnlyList<IIndex> |
indexes |
|
View Source
IsRegistered(IUmbracoContentIndex)
Declaration
public override bool IsRegistered(IUmbracoContentIndex index)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
PopulateIndexes(IReadOnlyList<IIndex>)
Declaration
protected override void PopulateIndexes(IReadOnlyList<IIndex> indexes)
Parameters
Type |
Name |
Description |
IReadOnlyList<IIndex> |
indexes |
|