32 lines
1.0 KiB
C#
32 lines
1.0 KiB
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Umbraco.Examine;
|
|
|
|
namespace Umbraco.Web.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> {UmbracoExamineIndex.UmbracoFileFieldName };
|
|
public IEnumerable<string> GetBackOfficeMediaFields()
|
|
{
|
|
return _backOfficeMediaFields;
|
|
}
|
|
public IEnumerable<string> GetBackOfficeDocumentFields()
|
|
{
|
|
return Enumerable.Empty<string>();
|
|
}
|
|
}
|
|
}
|