Update SearchScore and use AsParallel

This commit is contained in:
lorenz.stechauner committed 2023-08-26 19:39:28 +02:00
1 parent ba71618463
commit c0a6f16374
3 files changed
+23 -18

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ namespace Elwig.Windows {
List<Member> members = await memberQuery.ToListAsync();
if (TextFilter.Count > 0) {
var dict = members
var dict = members.AsParallel()
.ToDictionary(m => m, m => m.SearchScore(TextFilter))
.OrderByDescending(a => a.Value)
.ThenBy(a => a.Key.FamilyName)