mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 12:46:47 +02:00
Searches for keyword only in title and not content to improve the quality of results
This commit is contained in:
@@ -88,6 +88,9 @@ namespace Wox.Plugin.Indexer.SearchHelper
|
|||||||
// 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
|
||||||
|
queryHelper.QueryContentProperties = "System.Title";
|
||||||
|
|
||||||
// Set sorting order
|
// Set sorting order
|
||||||
queryHelper.QuerySorting = "System.DateModified DESC";
|
queryHelper.QuerySorting = "System.DateModified DESC";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user