anshdadhich commited on
Commit
ca34d91
·
verified ·
1 Parent(s): 78e313f

SearchEngine: Update to use IndexStore.Name()/NameLower()/BuildPath() APIs matching Rust. Remove NameAt/NameLowerAt references that no longer exist.

Browse files
Files changed (1) hide show
  1. FastSeekWpf/Core/SearchEngine.cs +2 -4
FastSeekWpf/Core/SearchEngine.cs CHANGED
@@ -73,7 +73,7 @@ public static class SearchEngine
73
  return false;
74
  }
75
 
76
- // Search — matches Rust search() exactly
77
  public static List<SearchResult> Search(
78
  IndexStore store,
79
  string query,
@@ -132,9 +132,7 @@ public static class SearchEngine
132
  if (ext != null && Array.IndexOf(AppExtensions, ext) >= 0)
133
  {
134
  string pathLower = fullPath.ToLowerInvariant();
135
- if (!ContainsAny(pathLower, AppPathMarkers))
136
- rank = baseRank;
137
- else
138
  rank = 0;
139
  }
140
  }
 
73
  return false;
74
  }
75
 
76
+ // Search — matches Rust search() exactly. Uses IndexStore.Name() / NameLower() / BuildPath()
77
  public static List<SearchResult> Search(
78
  IndexStore store,
79
  string query,
 
132
  if (ext != null && Array.IndexOf(AppExtensions, ext) >= 0)
133
  {
134
  string pathLower = fullPath.ToLowerInvariant();
135
+ if (ContainsAny(pathLower, AppPathMarkers))
 
 
136
  rank = 0;
137
  }
138
  }