Bug 379665

Summary: baloosearch not honoring --directory option
Product: [Frameworks and Libraries] frameworks-baloo Reporter: p92
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: glyphimor, gravesricharde, nate, nortexoid
Priority: NOR    
Version: 5.36.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: "From Here" option is not working.

Description p92 2017-05-09 15:49:12 UTC
I open dolfin

show a folder containing some files I wanna find

if I search for filenames containing "don" with "everywhere options" dolfin shows all teses files including the files I'm looking for in the current folder.

If I do the same search but specifying "from here", dolfin show an empty result, as if nothing was found.
Comment 1 p92 2017-05-09 15:52:12 UTC
I have restarted baloo with balooctl restart, and no change, still no results found in "from here" search

$ balooctl restart
$ org.kde.baloo: "/home/pascal"
org.kde.baloo: "/mnt/pc"
Power state changed

$ balooctl status
Baloo File Indexer is running
Indexer state: Inactif
Indexed 440522 / 440522 files
Current size of index is 15,17 Gio
Comment 2 Rick Graves 2017-05-16 21:15:53 UTC
Created attachment 105600 [details]
"From Here" option is not working.

In the uploaded screen shot, here is /home/Common/pyPacks, yet as one can see, Dolphin is finding files in /usr/lib/python2.7/encodings.
Comment 3 Rick Graves 2017-05-16 21:26:08 UTC
BTW, I am using Dolphin 4.13.3, via kubuntu 14.04 

(I am back to 14.04 because the kate & kwrite that come with 16.04 require at least a 4 core CPU to work acceptably on large files -- large files are not a problem with the kate & kwrite that come with 14.04.  Yes there is a posted bug for this problem, https://bugs.kde.org/show_bug.cgi?id=378579 To solve my problem quickly, it was easier for me to revert to 14.04, and assemble 4 core CPU desktop systems & acquire 4 core CPU laptops at my leisure.)
Comment 4 glyphimor 2017-07-15 04:49:05 UTC
This bug exists for me as well, in dolphin 16.12.3 and 17.04.3. One note: The submitter said he got no results for "From Here". My behavior is different, the same as the other commenter: the same search results are returned, whether "From Here" or "Everywhere" is selected.

System is gentoo; all package versions are:

kde-apps/dolphin-16.12.3:5
kde-apps/kio-extras-16.12.3-r1:5
kde-apps/baloo-widgets-16.12.3:5
kde-frameworks/baloo-5.34.0

The bug also affects:

kde-apps/dolphin-17.04.3
kde-apps/baloo-widgets-17.04.3
kde-apps/kio-extras-17.04.3
kde-frameworks/baloo-5.34.0

(An update to baloo is in unstable (kde-frameworks/baloo-5.36), but I can't test that at the moment.)

It's important to note that this isn't dolphin's fault: it's a problem with baloo. Someone already filed bug 378884 ("baloosearch doesn't respect --directory parameter") under frameworks-baloo.

You can test this w/ a command like:

baloosearch filename:some_filename --directory some_directory/

The --directory parameter is just ignored, and returns results for the entire system.
Comment 5 p92 2017-07-15 12:25:15 UTC
yes the culprit is baloosearch you are true. I'll change the bug product/component.

For me as of latest kubuntu ppa the bug is still here and manifest as extra lines listed from other directories outside the directory tree requested by the --directory option specified.
Comment 6 Nate Graham 2017-10-27 16:52:07 UTC

*** This bug has been marked as a duplicate of bug 378884 ***
Comment 7 Michael D 2018-02-07 17:26:38 UTC
I have the same bug as the reporter, where I get results when "everywhere" is selected and none when "from here" is selected.

I'm using KDE Neon, dolphin 17.12.1 and baloo 5.42.0.