Fixes: U4-4738 Backoffice search should support node ID search

This commit is contained in:
Shannon
2014-07-23 14:07:05 -07:00
parent c9b27b5a70
commit ee5c532be7
3 changed files with 4 additions and 2 deletions

View File

@@ -262,7 +262,7 @@ namespace Umbraco.Web.Editors
{
string type;
var searcher = Constants.Examine.InternalSearcher;
var fields = new[] { "id" };
var fields = new[] { "id", "__NodeId" };
//TODO: WE should really just allow passing in a lucene raw query
switch (entityType)
@@ -270,7 +270,7 @@ namespace Umbraco.Web.Editors
case UmbracoEntityTypes.Member:
searcher = Constants.Examine.InternalMemberSearcher;
type = "member";
fields = new[] { "id", "email", "loginName"};
fields = new[] { "id", "__NodeId", "email", "loginName"};
break;
case UmbracoEntityTypes.Media:
type = "media";