From c7fb1f6d17b1faec85f4cf7d6ae511e36c653c3c Mon Sep 17 00:00:00 2001 From: ricardosantos9521 Date: Thu, 21 May 2020 19:02:03 +0100 Subject: [PATCH] bug fix #3209 (#3457) Co-authored-by: ricar --- .../SearchHelper/WindowsSearchAPI.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs index 26c51f7b67..dc8da1ab60 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs @@ -36,11 +36,12 @@ namespace Microsoft.Plugin.Indexer.SearchHelper { while (WDSResults.Read()) { - if(WDSResults.GetValue(0) != DBNull.Value && WDSResults.GetValue(1) != DBNull.Value) + if (WDSResults.GetValue(0) != DBNull.Value && WDSResults.GetValue(1) != DBNull.Value) { + var uri_path = new Uri(WDSResults.GetString(0)); var result = new SearchResult { - Path = WDSResults.GetString(0), + Path = uri_path.LocalPath, Title = WDSResults.GetString(1) }; _Result.Add(result); @@ -90,7 +91,7 @@ namespace Microsoft.Plugin.Indexer.SearchHelper queryHelper.QueryMaxResults = maxCount; // Set list of columns we want to display, getting the path presently - queryHelper.QuerySelectColumns = "System.ItemPathDisplay, System.FileName"; + queryHelper.QuerySelectColumns = "System.ItemUrl, System.FileName"; // Set additional query restriction queryHelper.QueryWhereRestrictions = "AND scope='file:'";