Bug 473428

Summary: "ab" gives "About this System" but "abo" to "about th" gives KDiskFree instead of "About this System"
Product: [Plasma] plasmashell Reporter: Yao Mitachi <yaomtc>
Component: Application Launcher (Kickoff) widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: alexander.lohnau, mikel5764, natalie_clarius, nate, noahadvs
Priority: NOR    
Version First Reported In: 5.27.7   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0
Sentry Crash Report:
Attachments: Screenshot of KDiskFree as the top result in Application Launcher for "about th"

Description Yao Mitachi 2023-08-15 17:20:16 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open the Application Launcher on the panel
2. Start typing "about this system"

OBSERVED RESULT
Between the third character and the eighth, KDiskFree is the top result, despite not having "about" or "th" in the title or the short description beneath. "About this System" is the second result.

EXPECTED RESULT
"About this System" should be the top result with "abo" and beyond. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
I assume "about" and "th" are being pulled from the "type" in org.kde.kdf.desktop: "Displays information about hard disks and other storage devices". However "about" and "th" are quite far apart in the text here, so "about th" shouldn't even get KDiskFree in the results, let alone at the top. Also, that "th" is in the middle of a word so it really should not be a factor.
Comment 1 Nate Graham 2023-08-17 18:24:02 UTC
Are you really using git master, or a released version of Plasma? I ask because both "ab" and "abo" give me "About this System" with git master.
Comment 2 Yao Mitachi 2023-08-17 18:30:29 UTC
Created attachment 161035 [details]
Screenshot of KDiskFree as the top result in Application Launcher for "about th"

I am using 5.27.7, and this is actually about the Application Launcher widget on the panel, not krunner. I've corrected this. Here's a screenshot.
Comment 3 Nate Graham 2023-08-17 18:35:40 UTC
Thanks. It's fixed already for Plasma 6 by changing the search result weightings and also by making Kickoff use the same ordering as KRunner.