https://bugs.kde.org/show_bug.cgi?id=469026
Marco Martin changed:
What|Removed |Added
Resolution|--- |FIXED
Status|REPORTED|RESOLVED
Latest Commit||https://invent.kde.org/plas
||ma/discover/-/commit/786243
||247a9b661c3fdc910df5cc8d525
||0267f1e
Version Fixed In||6.0
--- Comment #1 from Marco Martin ---
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 475844
FIXED-IN: 6.0
![image](/uploads/05fae0a2b90bebb70f3aa6da78e04c4e/image.png)
M +26 -2discover/qml/ApplicationsListPage.qml
M +6-2libdiscover/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
--
You are receiving this mail because:
You are watching all bug changes.