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<Media |
logger | |
System. |
parentId | |
IMedia |
mediaService | |
IValue |
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<Media |
logger | |
IMedia |
mediaService | |
IValue |
mediaValueSetBuilder |
Methods
View SourcePopulateIndexes(IReadOnlyList<IIndex>)
Declaration
protected override void PopulateIndexes(IReadOnlyList<IIndex> indexes)
Parameters
Type | Name | Description |
---|---|---|
IRead |
indexes |