Bug 491501 - KRunner shows results when query contains one (1) letter, or three (3) letters, but not two (2) letters for most queries
Summary: KRunner shows results when query contains one (1) letter, or three (3) letter...
Status: RESOLVED DUPLICATE of bug 490972
Alias: None
Product: krunner
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.1.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-09 21:26 UTC by Adam Fontenot
Modified: 2024-08-12 17:53 UTC (History)
3 users (show)

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


Attachments
screen recording of issue (100.36 KB, video/webm)
2024-08-09 21:26 UTC, Adam Fontenot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Fontenot 2024-08-09 21:26:46 UTC
Created attachment 172455 [details]
screen recording of issue

SUMMARY

As I'm typing a query, results appear on the first letter entered, then disappear, then reappear. See video.

The effect appears to happen for downstream widgets like Milou as well, although it's less prominent because the widget doesn't resize when the number of results changes (I think this is maybe a bug?).

My guess is that there's a weird heuristic driving this effect, something like - if query contains less than three letters, show results that *begin* with those letters. If query contains three or more letters, show results that *contain* those letters. That sounds reasonable enough in principle, but in practice it can behave in pretty undesirable ways, as seen in the video.

Maybe a reasonable alternative heuristic would include:

  * Keeping existing results when new letters are added if those results would match under the three letter "full" check. This would get rid of the problem where a result (like System Settings in the video) disappears then reappears.
  * If less than n - some magic value - results are returned for one or two letter searches, fill in the gaps with a lower priority full text search for certain allowlisted plugins that are not research intensive.

The slightly annoying bug summary is for searchability, sorry about that.

STEPS TO REPRODUCE
1. Enable *ALL* search plugins in Plasma Search settings, to show that this isn't caused by insufficient result availability.
2. Type any query as described above (or see the video).

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.10.3-arch1-2 (64-bit)
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-08-12 17:53:04 UTC

*** This bug has been marked as a duplicate of bug 490972 ***