@@ -64,7 +64,11 @@ public async IAsyncEnumerable<SearchResult> SearchAsync(string search, [Enumerat
6464 if ( token . IsCancellationRequested )
6565 yield break ;
6666
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 ) ;
6872
6973 await foreach ( var result in EverythingApi . SearchAsync ( option , token ) )
7074 yield return result ;
@@ -96,6 +100,7 @@ public async IAsyncEnumerable<SearchResult> ContentSearchAsync(string plainSearc
96100 Settings . SortOption ,
97101 IsContentSearch : true ,
98102 ContentSearchKeyword : contentSearch ,
103+ MaxCount : Settings . MaxResult ,
99104 IsFullPathSearch : Settings . EverythingSearchFullPath ,
100105 IsRunCounterEnabled : Settings . EverythingEnableRunCount ) ;
101106
@@ -116,6 +121,7 @@ public async IAsyncEnumerable<SearchResult> EnumerateAsync(string path, string s
116121 Settings . SortOption ,
117122 ParentPath : path ,
118123 IsRecursive : recursive ,
124+ MaxCount : Settings . MaxResult ,
119125 IsFullPathSearch : Settings . EverythingSearchFullPath ,
120126 IsRunCounterEnabled : Settings . EverythingEnableRunCount ) ;
121127
0 commit comments