Class MediaIndexPopulator
Performs the data lookups required to rebuild a media index
Namespace: Umbraco.Cms.Infrastructure.Examine
Assembly: Umbraco.Infrastructure.dll
Syntax
public class MediaIndexPopulator : IndexPopulator<IUmbracoContentIndex>, IIndexPopulator
Constructors
View SourceMediaIndexPopulator(ILogger<MediaIndexPopulator>, Nullable<Int32>, IMediaService, IValueSetBuilder<IMedia>)
Optional constructor allowing specifying custom query parameters
Declaration
public MediaIndexPopulator(ILogger<MediaIndexPopulator> logger, int? parentId, IMediaService mediaService, IValueSetBuilder<IMedia> mediaValueSetBuilder)
Parameters
Type | Name | Description |
---|---|---|
ILogger<MediaIndexPopulator> | logger | |
System.Nullable<System.Int32> | parentId | |
IMediaService | mediaService | |
IValueSetBuilder<IMedia> | mediaValueSetBuilder |
MediaIndexPopulator(ILogger<MediaIndexPopulator>, IMediaService, IValueSetBuilder<IMedia>)
Default constructor to lookup all content data
Declaration
public MediaIndexPopulator(ILogger<MediaIndexPopulator> logger, IMediaService mediaService, IValueSetBuilder<IMedia> mediaValueSetBuilder)
Parameters
Type | Name | Description |
---|---|---|
ILogger<MediaIndexPopulator> | logger | |
IMediaService | mediaService | |
IValueSetBuilder<IMedia> | mediaValueSetBuilder |
Methods
View SourcePopulateIndexes(IReadOnlyList<IIndex>)
Declaration
protected override void PopulateIndexes(IReadOnlyList<IIndex> indexes)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<IIndex> | indexes |