Search Results for

    Show / Hide Table of Contents
    View Source

    Class UmbracoContentIndex

    An indexer for Umbraco content and media

    Inheritance
    System.Object
    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)

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

    Properties

    View Source

    LanguageService

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

    Methods

    View Source

    PerformDeleteFromIndex(IEnumerable<String>, Nullable<Action<IndexOperationEventArgs>>)

    Deletes a node from the index.

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

    ID of the node to delete

    System.Nullable<Action<IndexOperationEventArgs>> onComplete
    Remarks

    When a content node is deleted, we also need to delete it's children from the index so we need to perform a custom Lucene search to find all decendents and create Delete item queues for them too.

    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
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • UmbracoContentIndex(ILoggerFactory, String, IOptionsMonitor<LuceneDirectoryIndexOptions>, IHostingEnvironment, IRuntimeState, ILocalizationService)
    • Properties
      • LanguageService
    • Methods
      • PerformDeleteFromIndex(IEnumerable<String>, Nullable<Action<IndexOperationEventArgs>>)
      • PerformIndexItems(IEnumerable<ValueSet>, Action<IndexOperationEventArgs>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX