Bug 399832

Summary: Weird application name search results, single letter vs. multiple letters
Product: [Frameworks and Libraries] frameworks-krunner Reporter: S <sb56637>
Component: generalAssignee: Kai Uwe Broulik <kde>
Status: CONFIRMED ---    
Severity: normal CC: alexander.lohnau, bugseforuns, hmpl, kde, nate, stefan.bruens, thomas.surrel, zawertun
Priority: NOR    
Version: 5.50.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Finds "Oracle VM VirtualBox" with the letter `v`
Does NOT find "Oracle VM VirtualBox" with the term `vm`

Description S 2018-10-15 12:16:11 UTC
Hi, this bug is on openSUSE Tumbleweed with Plasma 5.14.0, KDE Frameworks 5.50.0, and Qt 5.11.2.

Basically, when I search for the name of the "Oracle VM VirtualBox" application in the Plasma start menu or Krunner, it finds it when I type a single `v`, but not with `vm`.
Comment 1 S 2018-10-15 12:16:49 UTC
Created attachment 115656 [details]
Finds "Oracle VM VirtualBox" with the letter `v`
Comment 2 S 2018-10-15 12:17:24 UTC
Created attachment 115657 [details]
Does NOT find "Oracle VM VirtualBox" with the term `vm`
Comment 3 Stefan BrĂ¼ns 2018-10-29 17:19:45 UTC
Applications are not stored in the Baloo DB but retrieved from the *.desktop files -> reassigning.

TLDR: for search terms with 1 or 2 characters, only the executable name is taken into account, descriptions etc. are only used for 3 or more characters. If you search for "vb", VirtualBox will likely show up.
Comment 4 Patrick Silva 2019-02-28 12:22:36 UTC
bug 400857 seems related
Comment 5 Alexander Lohnau 2020-06-27 18:58:44 UTC
Yeah, this actually bothers me too (since trying out KDE for the first time :D).

Maybe I can look into it but there is a lot of other stuff going on.
Comment 6 David Edmundson 2020-07-23 13:07:58 UTC
To explain what's happening.

V is not matching "Oracle VM VirtualBox"
V is matching to the GenericName in the .desktop file "Virtual Machine"

so we show the entry.

Neither name nor generic name start with "VM" so nothing shows.

Things are working exactly as intended, though that doesn't mean there isn't room for improvement.

Your underlying bug is that we're matching an application name starts with a string not whether any word in the name starts with a string.
Comment 7 Alexander Lohnau 2020-10-13 21:21:34 UTC
*** Bug 407255 has been marked as a duplicate of this bug. ***