Search Results for

    Show / Hide Table of Contents
    View Source

    Class PublishedContentIndexPopulator

    Performs the data lookups required to rebuild a content index containing only published content

    Inheritance
    object
    IndexPopulator
    IndexPopulator<IUmbracoContentIndex>
    ContentIndexPopulator
    Namespace: Umbraco.Cms.Infrastructure.Examine
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class PublishedContentIndexPopulator : ContentIndexPopulator, IIndexPopulator
    Remarks

    The published (external) index will still rebuild just fine using the default ContentIndexPopulator which is what is used when rebuilding all indexes, but this will be used when the single index is rebuilt and will go a little bit faster since the data query is more specific. since the data query is more specific.

    Constructors

    View Source

    PublishedContentIndexPopulator(ILogger<PublishedContentIndexPopulator>, IContentService, IUmbracoDatabaseFactory, IPublishedContentValueSetBuilder)

    Initializes a new instance of the PublishedContentIndexPopulator class.

    Declaration
    [Obsolete("Please use the non-obsolete constructor. Scheduled for removal in Umbraco 19.")]
    public PublishedContentIndexPopulator(ILogger<PublishedContentIndexPopulator> logger, IContentService contentService, IUmbracoDatabaseFactory umbracoDatabaseFactory, IPublishedContentValueSetBuilder contentValueSetBuilder)
    Parameters
    Type Name Description
    ILogger<PublishedContentIndexPopulator> logger

    The logger used for logging information and errors.

    IContentService contentService

    The service used to manage Umbraco content.

    IUmbracoDatabaseFactory umbracoDatabaseFactory

    The factory for creating Umbraco database instances.

    IPublishedContentValueSetBuilder contentValueSetBuilder

    The builder for creating value sets from published content.

    View Source

    PublishedContentIndexPopulator(ILogger<PublishedContentIndexPopulator>, IContentService, IUmbracoDatabaseFactory, IPublishedContentValueSetBuilder, IOptionsMonitor<IndexingSettings>)

    Initializes a new instance of the PublishedContentIndexPopulator class.

    Declaration
    public PublishedContentIndexPopulator(ILogger<PublishedContentIndexPopulator> logger, IContentService contentService, IUmbracoDatabaseFactory umbracoDatabaseFactory, IPublishedContentValueSetBuilder contentValueSetBuilder, IOptionsMonitor<IndexingSettings> indexingSettings)
    Parameters
    Type Name Description
    ILogger<PublishedContentIndexPopulator> logger

    The Microsoft.Extensions.Logging.ILogger<TCategoryName> used for logging operations.

    IContentService contentService

    The IContentService used to access and manage content items.

    IUmbracoDatabaseFactory umbracoDatabaseFactory

    The IUmbracoDatabaseFactory used to create Umbraco database connections.

    IPublishedContentValueSetBuilder contentValueSetBuilder

    The IPublishedContentValueSetBuilder responsible for building value sets for published content.

    IOptionsMonitor<IndexingSettings> indexingSettings

    The Microsoft.Extensions.Options.IOptionsMonitor<TOptions> providing access to indexing configuration settings.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX