Bug 477427 - Dolphin cannot search my files
Summary: Dolphin cannot search my files
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: search (show other bugs)
Version: 23.08.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-23 16:21 UTC by Firestar-Reimu
Modified: 2023-11-24 09:29 UTC (History)
2 users (show)

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


Attachments
My files (107.62 KB, image/png)
2023-11-23 16:21 UTC, Firestar-Reimu
Details
Cannot search files (139.85 KB, image/png)
2023-11-23 16:22 UTC, Firestar-Reimu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Firestar-Reimu 2023-11-23 16:21:45 UTC
Created attachment 163399 [details]
My files

for example, you can see here is a 1.txt in ~/Desktop

but I search 1 here for Filename, it do not return anything
Comment 1 Firestar-Reimu 2023-11-23 16:22:12 UTC
Created attachment 163400 [details]
Cannot search files
Comment 2 tagwerk19 2023-11-23 16:44:32 UTC
What distro are you using? I see "Arch" in the screenshots but it would nice to know for sure.

What happens when you try the command line:
    $ baloosearch -i 1.txt
and then when you try:
    $ baloosearch -i -d ~/Desktop 1.txt
Comment 3 Firestar-Reimu 2023-11-23 17:14:17 UTC
Yes I use archlinux

(base) [firestar@Archlinux Desktop]$ baloosearch -i 1.txt
644d4888feb7 /home/Firestar/C/Windows/System32/config/systemprofile/AppData/Local/Intel/GCC/gcc_svc_log_1.txt
ccd73840bf32 /home/Firestar/D/My Documents/Books/Advanced LaTeX In Academia Applications In Research And Education (Marco Öchsner, Andreas Öchsner) (Z-Library).pdf
Elapsed: 5.49702 msecs

(base) [firestar@Archlinux Desktop]$ baloosearch -i -d ~/Desktop 1.txt
Elapsed: 1.55824 msecs

PS: does bugs.kde.org support markdown format? how to render code blocks?
Comment 4 Firestar-Reimu 2023-11-23 17:17:13 UTC
OK I seems to know that it is because baloo do not know that I changed my username from Firestar to firestar, although I ran:

usermod -l [new_user] [old_user]

sudo usermod -d /home/newHomeDir -m newUsername
Comment 5 Firestar-Reimu 2023-11-23 17:35:30 UTC
https://www.reddit.com/r/kde/comments/13lpfjn/comment/jkscq6o/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

I use this method to re-build the index dataset, and solved this problem.

Is there any file indexer which can index folders real time and not need hours to build a index dataset? I think Windows File Manager can do this.
Comment 6 tagwerk19 2023-11-23 18:48:57 UTC
(In reply to Firestar-Reimu from comment #4)
> ... baloo do not know that I changed my username from Firestar to firestar ...
No, it probably wouldn't work that out...

It would pick up a rename of a folder within your $HOME, but changing your username is probably too much (I will admit I've not tried it...)
Comment 7 tagwerk19 2023-11-23 19:06:22 UTC
(In reply to Firestar-Reimu from comment #5)
> I use this method to re-build the index dataset, and solved this problem.
That's good to know...

> Is there any file indexer which can index folders real time and not need hours to
> build a index dataset? I think Windows File Manager can do this.
If you are happy to search for just the filenames then you don't have to turn on the "Content Indexing". It's the opening, reading, converting to text and indexing each word of each of the files that takes the time.

You can follow the indexing as it is happening by running
    balooctl monitor
and you can get a feel for how fast it is going. Baloo does "index in real time" in that if you change a file, it notices and updates the index. It's just that when you want to rebuild the index, it's a lot of work.

It looks as if you are indexing your Wine (maybe?) folders, that can include a *load* of files. If you are indexing hidden files and folders, it probably makes sense to exclude the .cache and .local/share/Trash
Comment 8 tagwerk19 2023-11-24 09:29:16 UTC
(In reply to tagwerk19 from comment #7)
> (In reply to Firestar-Reimu from comment #5)
> > I use this method to re-build the index dataset, and solved this problem.
> That's good to know...
Seems reasonable to close