Class DeliveryApiContentIndex
Namespace: Umbraco.Cms.Infrastructure.Examine
Assembly: Umbraco.Examine.Lucene.dll
Syntax
public class DeliveryApiContentIndex : UmbracoExamineIndex, IUmbracoIndex, IIndexDiagnostics
Constructors
View SourceDeliveryApiContentIndex(ILoggerFactory, String, IOptionsMonitor<LuceneDirectoryIndexOptions>, IHostingEnvironment, IRuntimeState)
Declaration
public DeliveryApiContentIndex(ILoggerFactory loggerFactory, string name, IOptionsMonitor<LuceneDirectoryIndexOptions> indexOptions, IHostingEnvironment hostingEnvironment, IRuntimeState runtimeState)
Parameters
Type | Name | Description |
---|---|---|
ILogger |
loggerFactory | |
System. |
name | |
IOptions |
indexOptions | |
IHosting |
hostingEnvironment | |
IRuntime |
runtimeState |
Methods
View SourceOnTransformingIndexValues(IndexingItemEventArgs)
Declaration
protected override void OnTransformingIndexValues(IndexingItemEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Indexing |
e |
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. |
itemIds | ID of the node to delete |
System. |
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.