Bug 399832 - Weird application name search results, single letter vs. multiple letters
Summary: Weird application name search results, single letter vs. multiple letters
Status: CONFIRMED
Alias: None
Product: frameworks-krunner
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.50.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
: 407255 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-10-15 12:16 UTC by S
Modified: 2020-10-13 21:21 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Finds "Oracle VM VirtualBox" with the letter `v` (21.29 KB, image/png)
2018-10-15 12:16 UTC, S
Details
Does NOT find "Oracle VM VirtualBox" with the term `vm` (21.27 KB, image/png)
2018-10-15 12:17 UTC, S
Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***