# Conflicts: # src/Umbraco.Infrastructure/Examine/ContentIndexPopulator.cs # src/Umbraco.Infrastructure/Examine/PublishedContentIndexPopulator.cs # src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs # src/Umbraco.Tests/UmbracoExamine/IndexTest.cs # src/Umbraco.Tests/UmbracoExamine/SearchTests.cs
22 lines
1007 B
C#
22 lines
1007 B
C#
using Umbraco.Cms.Core.Services;
|
|
using Umbraco.Cms.Infrastructure.Persistence;
|
|
|
|
namespace Umbraco.Cms.Infrastructure.Examine
|
|
{
|
|
/// <summary>
|
|
/// Performs the data lookups required to rebuild a content index containing only published content
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// The published (external) index will still rebuild just fine using the default <see cref="ContentIndexPopulator"/> which is what
|
|
/// is used when rebuilding all indexes, but this will be used when the single index is rebuilt and will go a little bit faster
|
|
/// since the data query is more specific.
|
|
/// </remarks>
|
|
public class PublishedContentIndexPopulator : ContentIndexPopulator
|
|
{
|
|
public PublishedContentIndexPopulator(IContentService contentService, IUmbracoDatabaseFactory umbracoDatabaseFactory, IPublishedContentValueSetBuilder contentValueSetBuilder) :
|
|
base(true, null, contentService, umbracoDatabaseFactory, contentValueSetBuilder)
|
|
{
|
|
}
|
|
}
|
|
}
|