Creates a sub-generic interface for creating indexes
This commit is contained in:
13
src/Umbraco.Examine/IIndexCreator.cs
Normal file
13
src/Umbraco.Examine/IIndexCreator.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user