Interface IUmbracoIndexingHandler
Namespace: Umbraco.Cms.Infrastructure.Search
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface IUmbracoIndexingHandler
Properties
View SourceEnabled
Returns true if the indexing handler is enabled
Declaration
bool Enabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
If this is false then there will be no data lookups executed to populate indexes when service changes are made.
Methods
View SourceDeleteDocumentsForContentTypes(IReadOnlyCollection<Int32>)
Deletes all documents for the content type Ids
Declaration
void DeleteDocumentsForContentTypes(IReadOnlyCollection<int> removedContentTypes)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyCollection<System.Int32> | removedContentTypes |
DeleteIndexForEntities(IReadOnlyCollection<Int32>, Boolean)
Remove items from an index
Declaration
void DeleteIndexForEntities(IReadOnlyCollection<int> entityIds, bool keepIfUnpublished)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyCollection<System.Int32> | entityIds | |
System.Boolean | keepIfUnpublished | If true, indicates that we will only delete this item from indexes that don't support unpublished content. If false it will delete this from all indexes regardless. |
DeleteIndexForEntity(Int32, Boolean)
Remove an item from an index
Declaration
void DeleteIndexForEntity(int entityId, bool keepIfUnpublished)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | entityId | |
System.Boolean | keepIfUnpublished | If true, indicates that we will only delete this item from indexes that don't support unpublished content. If false it will delete this from all indexes regardless. |
ReIndexForContent(IContent, Boolean)
Declaration
void ReIndexForContent(IContent sender, bool isPublished)
Parameters
Type | Name | Description |
---|---|---|
IContent | sender | |
System.Boolean | isPublished |
ReIndexForMedia(IMedia, Boolean)
Declaration
void ReIndexForMedia(IMedia sender, bool isPublished)
Parameters
Type | Name | Description |
---|---|---|
IMedia | sender | |
System.Boolean | isPublished |
ReIndexForMember(IMember)
Declaration
void ReIndexForMember(IMember member)
Parameters
Type | Name | Description |
---|---|---|
IMember | member |