Bug 512350

Summary: The search results order in the start menu (Kickoff Application Launcher) show apps with matching text at the end of the name before text matching the beginning of the name
Product: [Plasma] plasmashell Reporter: John <ilikefoss>
Component: Application Launcher (Kickoff) widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kdedev, mikel5764, noahadvs
Priority: NOR    
Version First Reported In: 6.5.2   
Target Milestone: 1.0   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: How the search results look like when searching for 'info'.

Description John 2025-11-19 16:15:57 UTC
Created attachment 186958 [details]
How the search results look like when searching for 'info'.

SUMMARY
The search results order in the start menu (Kickoff Application Launcher) could be better.

STEPS TO REPRODUCE
1. Install the MediaInfo and Hardinfo2 programs.
2. Open the start menu (Kickoff Application Launcher).
3. Type: info or Info (to search for the Info Center).
4. Look at how the search results are ordered.

OBSERVED RESULT
The search results are ordered like in the attached printscreen.
Without the 'Info Center' being the first one so I cannot just press Enter after search to open it.

EXPECTED RESULT
I expected a better ordering for the search results, with the one that I was looking for at the top, so I could just press Enter to open it.
I expected that  that the results are ordered by this priority:
1. Exact match info -> info (an item called just info).
2. Exact match, but case-insensitive (an item called both info and Info or with other letter upper or lower case).
3. Starts (from left to right) with info (like infoCenter, infoProgram).
4. Starts (from left to right with case-insesintive info (like InfoCenter, infoProgram).
5. Starts (from left to right) with info, but is followed by a space (like info Center, info Program).
6. Starts (from left to right with case-insensitive info (like Info Center, info Program).
7. Anywhere in the string, but first the ones that have info after a space or uppercased first (like Media info or MediaInfo).
8. Anywhere in the programs's name.
9. Anywhere in the program's comment.


SOFTWARE/OS VERSIONS
Linux
KDE Plasma Version: 6.5.2 
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2


ADDITIONAL INFORMATION
1. I have also trying to increase the precision a bit by using the exact case, so searching for 'Info' instead of 'info', but the same thing happens, the:
MediaInfo
Hardinfo2
Come before the 'Info Center'.
2. I tried to look o for the other word (center) and other strange thing happen as I get them like this:
Mission Center
Info Center
Help Center
Welcome Center
Why is Mission Center before Info Center?
Why when both are equal priority like in this case as both have center in them, both have it with uppercase first letter, the alphabetic order is not considered for higher priority?
Or the fact that Info Center is a KDE + Qt program, natively installed for Debian (.deb), unlike Mission Center a non-KDE program, written in GTK and installed non-natively with Flatpak?
Comment 1 TraceyC 2025-12-04 17:33:03 UTC
I can confirm the search result ordering on Plasma built from git-master.
Comment 2 TraceyC 2025-12-05 18:05:27 UTC
I found that there's an existing bug about this, so I'll merge this in with the older one. Please follow bug 512400 for updates.

*** This bug has been marked as a duplicate of bug 512400 ***
Comment 3 John 2025-12-05 21:53:03 UTC
Thanks for looking at it and for finding a duplicate!
I'll look at the updates for that one.