Files
Umbraco-CMS/src/Umbraco.Infrastructure/Search/UmbracoTreeSearcherFields.cs

32 lines
1.0 KiB
C#

using System.Collections.Generic;
using System.Linq;
using Umbraco.Cms.Infrastructure.Examine;
namespace Umbraco.Cms.Infrastructure.Search
{
public class UmbracoTreeSearcherFields : IUmbracoTreeSearcherFields
{
private IReadOnlyList<string> _backOfficeFields = new List<string> {"id", "__NodeId", "__Key"};
public IEnumerable<string> GetBackOfficeFields()
{
return _backOfficeFields;
}
private IReadOnlyList<string> _backOfficeMembersFields = new List<string> {"email", "loginName"};
public IEnumerable<string> GetBackOfficeMembersFields()
{
return _backOfficeMembersFields;
}
private IReadOnlyList<string> _backOfficeMediaFields = new List<string> { UmbracoExamineFieldNames.UmbracoFileFieldName };
public IEnumerable<string> GetBackOfficeMediaFields()
{
return _backOfficeMediaFields;
}
public IEnumerable<string> GetBackOfficeDocumentFields()
{
return Enumerable.Empty<string>();
}
}
}