mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-10 21:41:51 +02:00
SearchIndexer - Modifying QueryContentProperties and QuerySelectColumns to use System.FileName
This commit is contained in:
@@ -90,13 +90,13 @@ namespace Microsoft.Plugin.Indexer.SearchHelper
|
|||||||
queryHelper.QueryMaxResults = maxCount;
|
queryHelper.QueryMaxResults = maxCount;
|
||||||
|
|
||||||
// Set list of columns we want to display, getting the path presently
|
// 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
|
// Set additional query restriction
|
||||||
queryHelper.QueryWhereRestrictions = "AND scope='file:'";
|
queryHelper.QueryWhereRestrictions = "AND scope='file:'";
|
||||||
|
|
||||||
// To filter based on title for now
|
// To filter based on title for now
|
||||||
queryHelper.QueryContentProperties = "System.Title";
|
queryHelper.QueryContentProperties = "System.FileName";
|
||||||
|
|
||||||
// Set sorting order
|
// Set sorting order
|
||||||
queryHelper.QuerySorting = "System.DateModified DESC";
|
queryHelper.QuerySorting = "System.DateModified DESC";
|
||||||
|
|||||||
Reference in New Issue
Block a user