Files
Umbraco-CMS/src/Umbraco.Web/Search/UmbracoTreeSearcherFields.cs
abi 0d12852cd8 Address Shannon comments
Add code documentation, return empty enumerable instead of allocate empty list
2020-01-21 09:07:10 +00:00

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>();
}
}
}