Creates a sub-generic interface for creating indexes

This commit is contained in:
Shannon
2018-12-12 12:37:21 +11:00
parent e1743ae3ea
commit 15c7d7ce77
4 changed files with 17 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
using System.Collections.Generic;
using Examine;
namespace Umbraco.Examine
{
/// <summary>
/// Creates <see cref="IIndex"/>'s
/// </summary>
public interface IIndexCreator
{
IEnumerable<IIndex> Create();
}
}

View File

@@ -1,12 +1,9 @@
using System;
using System.Collections.Generic;
using Examine;
using Umbraco.Core;
namespace Umbraco.Examine
{
/// <summary>
/// Exposes diagnostic information about an index
/// </summary>

View File

@@ -66,6 +66,7 @@
<Compile Include="ExamineExtensions.cs" />
<Compile Include="IContentValueSetBuilder.cs" />
<Compile Include="IContentValueSetValidator.cs" />
<Compile Include="IIndexCreator.cs" />
<Compile Include="IIndexDiagnostics.cs" />
<Compile Include="IIndexPopulator.cs" />
<Compile Include="IndexPopulator.cs" />

View File

@@ -1,13 +1,14 @@
using System.Collections.Generic;
using Examine;
using Umbraco.Examine;
namespace Umbraco.Web.Search
{
/// <inheritdoc />
/// <summary>
/// Used to create the Umbraco indexes
/// </summary>
public interface IUmbracoIndexesCreator
public interface IUmbracoIndexesCreator : IIndexCreator
{
IEnumerable<IIndex> Create();
}
}