You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This uses the Microsoft.Search.Interop assembly
43
43
// Throws COMException if Windows Search service is not running/disabled, this needs to be caught
@@ -66,7 +66,7 @@ public string Directory(ReadOnlySpan<char> path, ReadOnlySpan<char> searchString
66
66
?RecursiveDirectoryConstraint(path)
67
67
:TopLevelDirectoryConstraint(path);
68
68
69
-
varquery=$"SELECT TOP {settings.MaxResult}{CreateBaseQuery().QuerySelectColumns} FROM {SystemIndex} WHERE {scopeConstraint}{queryConstraint} ORDER BY {OrderIdentifier}";
69
+
varquery=$"SELECT TOP {Settings.MaxResult}{CreateBaseQuery().QuerySelectColumns} FROM {SystemIndex} WHERE {scopeConstraint}{queryConstraint} ORDER BY {OrderIdentifier}";
$"SELECT TOP {settings.MaxResult}{CreateBaseQuery().QuerySelectColumns} FROM {SystemIndex} WHERE {RestrictionsForFileContentSearch(userSearchString)} AND {RestrictionsForAllFilesAndFoldersSearch} ORDER BY {OrderIdentifier}";
136
+
$"SELECT TOP {Settings.MaxResult}{CreateBaseQuery().QuerySelectColumns} FROM {SystemIndex} WHERE {RestrictionsForFileContentSearch(userSearchString)} AND {RestrictionsForAllFilesAndFoldersSearch} ORDER BY {OrderIdentifier}";
0 commit comments