Merged Umbraco.Examine and Umbraco.Infrastructure and moved more files into Infrastructure

This commit is contained in:
Bjarke Berg
2020-02-18 13:34:31 +01:00
parent ecaa3be637
commit accef6d96a
56 changed files with 43 additions and 40 deletions

View File

@@ -0,0 +1,32 @@
using System.Collections.Generic;
using System.Linq;
using Examine;
namespace Umbraco.Examine
{
public class MemberValueSetValidator : ValueSetValidator
{
public MemberValueSetValidator() : base(null, null, DefaultMemberIndexFields, null)
{
}
public MemberValueSetValidator(IEnumerable<string> includeItemTypes, IEnumerable<string> excludeItemTypes)
: base(includeItemTypes, excludeItemTypes, DefaultMemberIndexFields, null)
{
}
public MemberValueSetValidator(IEnumerable<string> includeItemTypes, IEnumerable<string> excludeItemTypes, IEnumerable<string> includeFields, IEnumerable<string> excludeFields)
: base(includeItemTypes, excludeItemTypes, includeFields, excludeFields)
{
}
/// <summary>
/// By default these are the member fields we index
/// </summary>
public static readonly string[] DefaultMemberIndexFields = { "id", UmbracoExamineFieldNames.NodeNameFieldName, "updateDate", "loginName", "email", UmbracoExamineFieldNames.NodeKeyFieldName };
private static readonly IEnumerable<string> ValidCategories = new[] { IndexTypes.Member };
protected override IEnumerable<string> ValidIndexCategories => ValidCategories;
}
}