SearchEngine: Update to use IndexStore.Name()/NameLower()/BuildPath() APIs matching Rust. Remove NameAt/NameLowerAt references that no longer exist.
Browse files
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 (
|
| 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 |
}
|