Search Results for

    Show / Hide Table of Contents
    View Source

    Class UmbracoContentIndex

    An indexer for Umbraco content and media.

    Inheritance
    object
    BaseIndexProvider
    LuceneIndex
    UmbracoExamineIndex
    Namespace: Umbraco.Cms.Infrastructure.Examine
    Assembly: Umbraco.Examine.Lucene.dll
    Syntax
    public class UmbracoContentIndex : UmbracoExamineIndex, IIndexDiagnostics, IUmbracoContentIndex, IUmbracoIndex

    Constructors

    View Source

    UmbracoContentIndex(ILoggerFactory, string, IOptionsMonitor<LuceneDirectoryIndexOptions>, IHostingEnvironment, IRuntimeState, ILocalizationService?)

    Initializes a new instance of the UmbracoContentIndex class.

    Declaration
    public UmbracoContentIndex(ILoggerFactory loggerFactory, string name, IOptionsMonitor<LuceneDirectoryIndexOptions> indexOptions, IHostingEnvironment hostingEnvironment, IRuntimeState runtimeState, ILocalizationService? languageService = null)
    Parameters
    Type Name Description
    ILoggerFactory loggerFactory
    string name
    IOptionsMonitor<LuceneDirectoryIndexOptions> indexOptions
    IHostingEnvironment hostingEnvironment
    IRuntimeState runtimeState
    ILocalizationService languageService

    Properties

    View Source

    LanguageService

    Gets the ILocalizationService.

    Declaration
    protected ILocalizationService? LanguageService { get; }
    Property Value
    Type Description
    ILocalizationService

    Methods

    View Source

    PerformDeleteFromIndex(IEnumerable<string>, Action<IndexOperationEventArgs>?)

    override to check if we can actually initialize.

    Declaration
    protected override void PerformDeleteFromIndex(IEnumerable<string> itemIds, Action<IndexOperationEventArgs>? onComplete)
    Parameters
    Type Name Description
    IEnumerable<string> itemIds

    ID of the node to delete

    Action<IndexOperationEventArgs> onComplete
    Remarks

    This check is required since the base examine lib will try to rebuild on startup

    View Source

    PerformIndexItems(IEnumerable<ValueSet>, Action<IndexOperationEventArgs>)

    Special check for invalid paths.

    Declaration
    protected override void PerformIndexItems(IEnumerable<ValueSet> values, Action<IndexOperationEventArgs> onComplete)
    Parameters
    Type Name Description
    IEnumerable<ValueSet> values
    Action<IndexOperationEventArgs> onComplete
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX