Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentIndexPopulator

    Performs the data lookups required to rebuild a content index

    Inheritance
    System.Object
    IndexPopulator
    IndexPopulator<IUmbracoContentIndex>
    Namespace: Umbraco.Cms.Infrastructure.Examine
    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
    Type Name Description
    ILogger<ContentIndexPopulator> logger
    System.Boolean publishedValuesOnly
    System.Nullable<System.Int32> parentId
    IContentService contentService
    IUmbracoDatabaseFactory umbracoDatabaseFactory
    IValueSetBuilder<IContent> contentValueSetBuilder
    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
    Type Name Description
    ILogger<ContentIndexPopulator> logger
    IContentService contentService
    IUmbracoDatabaseFactory umbracoDatabaseFactory
    IContentValueSetBuilder contentValueSetBuilder

    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
    Type Name Description
    IUmbracoContentIndex index
    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
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentIndexPopulator(ILogger<ContentIndexPopulator>, Boolean, Nullable<Int32>, IContentService, IUmbracoDatabaseFactory, IValueSetBuilder<IContent>)
      • ContentIndexPopulator(ILogger<ContentIndexPopulator>, IContentService, IUmbracoDatabaseFactory, IContentValueSetBuilder)
    • Methods
      • IndexAllContent(Int32, Int32, Int32, IReadOnlyList<IIndex>)
      • IndexPublishedContent(Int32, Int32, Int32, IReadOnlyList<IIndex>)
      • IsRegistered(IUmbracoContentIndex)
      • PopulateIndexes(IReadOnlyList<IIndex>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX