Bug 495245

Summary: Caption substring match inappropriately prioritized over title substring match
Product: [Plasma] krunner Reporter: Miroslav Jarý <mira.jary>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: ASSIGNED ---    
Severity: normal CC: akselmo, alexander.lohnau, natalie_clarius, nate
Priority: NOR Keywords: usability
Version First Reported In: 6.3.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: List of entries for the phrase "cli"

Description Miroslav Jarý 2024-10-23 14:53:13 UTC
Created attachment 175146 [details]
List of entries for the phrase "cli"

SUMMARY
Application search has sometimes weird order of entries. For example, when I want to open CLion, and search for "cl" or "clio", it is the first in the list. However, when I enter "cli", it is for some unknown reason after "Slack" and "Qbittorrent" entries (I suppose because they both have "client" in it's description).
I guess there are two issues - in the fuzzy search itself (why is different order on "cl" and "cli"), and in the priority (app name should always have priority in search over the description).

STEPS TO REPRODUCE
1. Install apps as seen in the screenshot (alternatively I can directly provide their .desktop files)
2. Open KRunner.
3. Search for phrases "cl", "cli", "clio"

OBSERVED RESULT
CLion is on the third place in the list for phrase "cli".

EXPECTED RESULT
CLion should be in the first place for all the phrases as it's the best match from the entries.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.1
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.4-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × 13th Gen Intel® Core™ i5-13420H
Memory: 15,3 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: LENOVO
Product Name: 82XV
System Version: LOQ 15IRH8

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2025-07-21 21:27:21 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5697
Comment 2 Akseli Lahtinen 2025-08-21 11:48:07 UTC
Another relevant MR https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5678