SUMMARY Search in Dolphin does not work when it should. STEPS TO REPRODUCE 1. Open Dolphin, click the search button, and search for e. g. “Desktop” with “File name” option. 2. Go to System Settings -> Workspace -> Search -> File Search. 3. Toggle the “Enable file search” checkbox, and click “Apply”. 4. Try to search again. OBSERVED RESULT Search only works if “Enable file search” is *not* checked, otherwise the search finishes with no results. EXPECTED RESULT The other way round. (Or search works always.) SOFTWARE/OS VERSIONS Dolphin 21.04.2 Operating System: KDE neon 5.22 KDE Plasma Version: 5.22.2 KDE Frameworks Version: 5.83.0 Qt Version: 5.15.3 ADDITIONAL INFORMATION From https://bugs.kde.org/show_bug.cgi?id=405317#c1 > Nate Graham 2019-03-17 16:11:01 UTC > > If you run `balooshow <name of file>` in a terminal window, > does it appear there? Running `balooshow Desktop` shows sensible results for my ~/Desktop directory. So baloo itself seems to work fine. Despite the weird behavior described in https://bugs.kde.org/show_bug.cgi?id=439276. Filing this in “dolphin”, because I don’t know which of the ”baloo” products would be correct. You may move this. :)
I experienced exactly the same problems, so I linked your bug report to the one I made two weeks ago. *** This bug has been marked as a duplicate of bug 438850 ***
Have a look at Bug 435119 Dolphin makes use of Baloo when it thinks baloo is running and indexing the particular folders, if it not it falls back to a "there and then" search. This is "baloosearch" versus "filenamesearch". The "there and then" search can be slow and despite the name, it can search for content, not just filenames. The question is, what's happening when Dolphin is doing "baloo" searches and show no results.
*** This bug has been marked as a duplicate of bug 431664 ***