Bug 512833

Summary: Fuzzy search prefers middle or end match over beginning of string
Product: [Plasma] krunner Reporter: Zerwin+bugskde
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: alexander.lohnau, ben2talk, natalie_clarius
Priority: NOR    
Version First Reported In: 6.5.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Zerwin+bugskde 2025-12-01 11:51:45 UTC
Follow up to https://discuss.kde.org/t/toggle-to-disable-fuzzy-search/40925/11
Similar to: Bug 511235

SUMMARY
Fuzzy search seems to prefer matches at the end or the middle of the string over matches at the start.
In my case, I had this happen when searching for Deluge.

STEPS TO REPRODUCE:
If I type "D", the results are:
- Deluge
- Dolphin
- Discover
- MiSide

If I type "De", the results are:
- MiSide
- SideQuest
...
- Blender
...
at 16th place: Deluge

If I type "Del", the results are:
- Deluge
- Blender
- Dolphin
- MiSide

It seems like it aggressively prefers matching substrings anywhere in the middle or end of the found results over at the start, which in this case causes Deluge to be moved down to the 16th place of the search result, even though De perfectly matches Deluge.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1
Kernel Version: 6.17.9-2-cachyos (64-bit)
Graphics Platform: Wayland
Comment 1 Ben Guy-Williams 2025-12-01 12:45:45 UTC
Certainly a lot of dissonance... 

For SystemSettings:

Typing 'sett'
#### Applications:
- YAD settings
- Qt5 settings
-Klassy Settings
-Manjaro Settings Manager
-Manjaro Notifier KDE Settings
-Settings - root (my own launcher)
-Settings-Colours
-Print Settings
#### System Settings
- Quick Settings
- User Feedback
- Touchpad
- Regional Language


WTF - my krunner doesn't show the main systemsettings but it does (at the bottom) show 'Global Shortcuts - systemsettings'.

Operating System: Manjaro Linux 
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1
Kernel Version: 6.17.9-1-MANJARO (64-bit)
Graphics Platform: Wayland