From ee5c532be703560174420982821b026614fc5600 Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 23 Jul 2014 14:07:05 -0700 Subject: [PATCH] Fixes: U4-4738 Backoffice search should support node ID search --- src/Umbraco.Web/Editors/EntityController.cs | 4 ++-- .../umbraco.presentation/umbraco/Search/QuickSearch.ascx.cs | 1 + .../umbraco/Search/QuickSearchHandler.ashx.cs | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/Editors/EntityController.cs b/src/Umbraco.Web/Editors/EntityController.cs index f98c3d051a..e16bd18712 100644 --- a/src/Umbraco.Web/Editors/EntityController.cs +++ b/src/Umbraco.Web/Editors/EntityController.cs @@ -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"; diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/Search/QuickSearch.ascx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/Search/QuickSearch.ascx.cs index e2729e587e..bcc051d562 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/Search/QuickSearch.ascx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/Search/QuickSearch.ascx.cs @@ -12,6 +12,7 @@ namespace umbraco.presentation.Search /// /// Summary description for quickEdit. /// + [Obsolete("This is not used and will be removed in the future")] public partial class QuickSearch : System.Web.UI.UserControl { diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/Search/QuickSearchHandler.ashx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/Search/QuickSearchHandler.ashx.cs index 7d939e5809..7826b2060c 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/Search/QuickSearchHandler.ashx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/Search/QuickSearchHandler.ashx.cs @@ -20,6 +20,7 @@ namespace umbraco.presentation.umbraco.Search /// [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] + [Obsolete("This is not used and will be removed in the future")] public class QuickSearchHandler : IHttpHandler {