@@ -64,7 +64,11 @@ public async IAsyncEnumerable<SearchResult> SearchAsync(string search, [Enumerat
64
64
if ( token . IsCancellationRequested )
65
65
yield break ;
66
66
67
- var option = new EverythingSearchOption ( search , Settings . SortOption , IsFullPathSearch : Settings . EverythingSearchFullPath , IsRunCounterEnabled : Settings . EverythingEnableRunCount ) ;
67
+ var option = new EverythingSearchOption ( search ,
68
+ Settings . SortOption ,
69
+ MaxCount : Settings . MaxResult ,
70
+ IsFullPathSearch : Settings . EverythingSearchFullPath ,
71
+ IsRunCounterEnabled : Settings . EverythingEnableRunCount ) ;
68
72
69
73
await foreach ( var result in EverythingApi . SearchAsync ( option , token ) )
70
74
yield return result ;
@@ -96,6 +100,7 @@ public async IAsyncEnumerable<SearchResult> ContentSearchAsync(string plainSearc
96
100
Settings . SortOption ,
97
101
IsContentSearch : true ,
98
102
ContentSearchKeyword : contentSearch ,
103
+ MaxCount : Settings . MaxResult ,
99
104
IsFullPathSearch : Settings . EverythingSearchFullPath ,
100
105
IsRunCounterEnabled : Settings . EverythingEnableRunCount ) ;
101
106
@@ -116,6 +121,7 @@ public async IAsyncEnumerable<SearchResult> EnumerateAsync(string path, string s
116
121
Settings . SortOption ,
117
122
ParentPath : path ,
118
123
IsRecursive : recursive ,
124
+ MaxCount : Settings . MaxResult ,
119
125
IsFullPathSearch : Settings . EverythingSearchFullPath ,
120
126
IsRunCounterEnabled : Settings . EverythingEnableRunCount ) ;
121
127
0 commit comments