Bug 442431 - KRunner Desktop Search results out of sync with "baloosearch".
Summary: KRunner Desktop Search results out of sync with "baloosearch".
Status: REPORTED
Alias: None
Product: krunner
Classification: Plasma
Component: filesearch (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-14 12:39 UTC by kdb.devel
Modified: 2021-09-28 11:51 UTC (History)
2 users (show)

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


Attachments
Screenshot of discrepancy between baloosearch and Launcher / KRunner. (152.54 KB, image/png)
2021-09-28 11:51 UTC, kdb.devel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kdb.devel 2021-09-14 12:39:59 UTC
Windows:                not tested
macOS:                  not tested
Linux/KDE Plasma ------------------------------
SUMMARY

The "Desktop Search" plugin of KRunner yields outdated results for
file name based search compared to running "baloosearch" at the
terminal.


STEPS TO REPRODUCE (does not always work, see “ADDITIONAL INFORMATION”)

1. Configuration
1.1. Enable “Desktop Search” in KRunner.
1.2. Ensure that Baloo indexes ~/Documents

2. Creation of new file.
2.1. Run: “touch ~/Documents/'2031 - User et al. - Baloo is faster.pdf'”
2.2. Test “baloosearch 2031” and searching for “2031” with KRunner.


OBSERVED RESULT

“baloosearch 2031” instantly shows the newly created file, whereas
typing “2031” into KRunner or Application Launcher does not show the
file.

After a while the file will also be shown in KRunner.

After deleting or renaming “~/Documents/2031 - User et al. - Baloo is
faster.pdf”, “baloosearch 2031” will instantly stop returning the
result, while “KRunner” will still show the now outdated result.


EXPECTED RESULT

KRunner should update its result as fast as Baloo.


SOFTWARE/OS VERSIONS
Operating System:       openSUSE Leap 15.2
KDE Plasma Version:     5.18.6
KDE Frameworks Version: 5.71.0
Qt Version:             5.12.7
Kernel Version:         5.3.18-lp152.87-default
OS Type:                64-bit


ADDITIONAL INFORMATION

After a reboot the issue went away, but I expect it to return, as it
always did so far.

In the past I’ve also seen search results being updated after waiting
for a long time, without rebooting -- but I can’t be entirely sure
anymore.

The issue was reproducible over the last 2 years in Application
Launcher and KRunner. The conditions under which (temporarily)
real-time updates work are not clear.
Comment 1 kdb.devel 2021-09-20 14:19:58 UTC
The issue DID return, as expected.
Comment 2 Alexander Lohnau 2021-09-20 20:01:03 UTC
Does the runner show other matches for the query you typed? If so please make screenshot
Comment 3 kdb.devel 2021-09-28 11:51:55 UTC
Created attachment 141986 [details]
Screenshot of discrepancy between baloosearch and Launcher / KRunner.

Demonstration of the discrepancy. 

The entry "2021 Bamer" is curious in particular, since it doesn't show up in "baloosearch" and is an existing file.