From 37a551ecd3199c693735654f0a157970316f4017 Mon Sep 17 00:00:00 2001 From: ryanbodrug-microsoft <56318517+ryanbodrug-microsoft@users.noreply.github.com> Date: Wed, 15 Apr 2020 16:55:27 -0700 Subject: [PATCH] SearchIndexer - Modifying QueryContentProperties and QuerySelectColumns to use System.FileName --- .../Microsoft.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 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 83bcda7418..26c51f7b67 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs @@ -90,13 +90,13 @@ namespace Microsoft.Plugin.Indexer.SearchHelper queryHelper.QueryMaxResults = maxCount; // Set list of columns we want to display, getting the path presently - queryHelper.QuerySelectColumns = "System.ItemPathDisplay"; + queryHelper.QuerySelectColumns = "System.ItemPathDisplay, System.FileName"; // Set additional query restriction queryHelper.QueryWhereRestrictions = "AND scope='file:'"; // To filter based on title for now - queryHelper.QueryContentProperties = "System.Title"; + queryHelper.QueryContentProperties = "System.FileName"; // Set sorting order queryHelper.QuerySorting = "System.DateModified DESC";