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