| Summary: | Does not find GIMP when searching for "gimp" | ||
|---|---|---|---|
| Product: | [Applications] Discover | Reporter: | Nate Graham <nate> |
| Component: | discover | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | aleixpol |
| Priority: | NOR | Keywords: | usability |
| Version First Reported In: | master | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/discover/-/commit/786243247a9b661c3fdc910df5cc8d5250267f1e | Version Fixed/Implemented In: | 6.0 |
| Sentry Crash Report: | |||
|
Description
Nate Graham
2023-10-19 20:02:33 UTC
Git commit 786243247a9b661c3fdc910df5cc8d5250267f1e by Marco Martin. Committed on 03/11/2023 at 16:51. Pushed by mart into branch 'master'. Relevance sorting heuristics for search Search also in appstreamId(): weird but only way to make gimp come up when searching for gimp, there is also appstream searchTokens but they are abused and lead to a lot of garbage results. Do a new sortRole default when there is a search. This relevance role combines: * rating * a measure based on The Levenshtein distance between search string and app name * an exact match with the name or a sub-word of the name It makes sortings much more "expected" than any of the other sortings. Related: bug 399502, bug 469026 FIXED-IN: 6.0  M +26 -2 discover/qml/ApplicationsListPage.qml M +6 -2 libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp M +87 -38 libdiscover/resources/ResourcesProxyModel.cpp M +2 -10 libdiscover/resources/ResourcesProxyModel.h https://invent.kde.org/plasma/discover/-/commit/786243247a9b661c3fdc910df5cc8d5250267f1e |