SUMMARY Searching in dolphin doesn't return anything. STEPS TO REPRODUCE 1. Open Dolphin. 2. Ctrl + F. 3. Type a search term. OBSERVED RESULT No results after waiting for long. EXPECTED RESULT Get results. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.21 (available in About System) KDE Plasma Version: 5.21.1 KDE Frameworks Version: 5.79.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION
Created attachment 137169 [details] Dolphin search dialog when baloo is running
Created attachment 137170 [details] Dolphin search dialog when baloo is not working ... Not working or has not index that particular folder.
I think the first step is to check whether dolphin is using baloo or not. Baloo is the indexing service that gathers together all the information about your files, holds it together in a database and uses that to provide the answers to search queries. If baloo "is running", when you do a Ctrl-F you'll see a search box together with options to display the type of file, the date, a rating that you've given it and any tags you've given it. The dialog looks like the attached "Search-with-Baloo" image If you have disabled baloo or it is not indexing that particular folder, when you do a Ctrl-F you'll see a dialog like the attached "Search-without-Baloo" image. However the screenshots show something else, that there are options to search for "filenames" or "content" and also from your working directory or all your files. You didn't say what you were searching for when you said "Type a search term", a filename or some text inside one of the files? Try creating a test file in your Documents folder: cd ~/Documents echo "Hello Penguin" > test-file.txt and search for "test", you should get a result. If you search for "Penguin" you will only see hits if you have clicked on "Content". Yes, these things are buttons... You can go back and forth between "Filename" and "Content" and see the difference. If you don't see anything, try clicking on "Your Files" If you still don't see anything then there's probably some baloo troubleshooting to do. If the Ctrl-F search dialog looked like the Search-with-Baloo image, make sure it says "Any Type", "Any Date", "Any Rating" and that no tags are specified. Still nothing? Then it's time to query baloo directly and compare results. In System Settings "Search", you should see "Enable File Search" checked and your home directory "indexed" in the Folder specific configuration list. Also try the "Also index file content", with that you should be able to find the test file if you search for "Penguin". At the command line, try a set of commands cd ~/Documents balooctl status balooshow -x test-file.txt baloosearch test baloosearch Penguin The baloostatus should show that baloo is running. The balooshow would show you what baloo has noted down about your test file. The baloosearch find matches for 'test' (and should find your file by name) and also files that contain 'Penguin' If these do not work, try rebuilding the index. In one window, run balooctl monitor which will show a list of files as they are indexed. In a second window, run balooctl purge which will delete the index and start building it again from scratch. You should see the test-file.txt being indexed, you can then try the 'baloosearch' commands again. Try these things out and see how far you get. It may be that different/older versions of Dolphin and Baloo work slightly differently - but you do say Plasma 5.21 and Frameworks 5.79.0. It may also be that things work differently if you've been running Neon for a while and started with a far older version and upgraded. Hope this all makes sense...
(In reply to tagwerk19 from comment #3) > If baloo "is running", when you do a Ctrl-F you'll see a search box together > with options to display the type of file, the date, a rating that you've > given it and any tags you've given it. The dialog looks like the attached > "Search-with-Baloo" image That should have been... with options to filter the type of file, the date, a rating that you've given it and any tags you've given it. Oh, well...
Mina, is Baloo running or not? Or are you saying that it doesn't work in either case?
> is Baloo running or not? Yes it should be running. I have this: $ pgrep baloo 1427814 1430114 > when you do a Ctrl-F you'll see... I see something like this https://bugsfiles.kde.org/attachment.cgi?id=137169 which has "any type" & "any date" & "any rating". Therefore baloo should be running. > Try creating a test file in your Documents folder... Okay, but I used "~/Documents/TestBaloo" instead, because my Documents folder is quite messy. $ echo "Hello Penguin" > test-file.txt And now if I go to that folder and Ctrl + F and search "test" or "Penguin" I get no results. $ balooctl status It stays blank and I have to hit Ctrl + C to exit. $ balooshow -x test-file.txt test-file.txt: No index information found ...so there's no index. Okay. mono@gask:~/Documents/TestBaloo$ baloosearch test /home/mono/Sachen/Documents Library/Thesis/template/lstpatch.sty It returns things from another directory. This is not a full list. And test-file.txt is not in the list. $ baloosearch Penguin Elapsed: 15.2315 msecs Returns nothing. Now for balooctl monitor in one window and balooctl purge in another window. The first one: $ balooctl monitor Press ctrl+c to stop monitoring File indexer is running Idle The second one: $ balooctl purge Stopping the File Indexer ............................................................................................................................................................................................................................................................................................................... - failed to stop! Not sure if you can see the output correctly, but it's just lots of dots and "failed to stop" in the end. > In System Settings "Search", you should see "Enable File Search" checked and your home directory "indexed"... Yes it's checked, and home is indexed, and also "Also index file content" is checked. Hope any of this makes sense.
> It may also be that things work differently if you've been running Neon for a while and started with a far older version and upgraded. Yeah my neon is with me since 18.04 and I upgraded it to 20.04.
(In reply to Mina from comment #6) > ... I used "~/Documents/TestBaloo" instead, because my Documents > folder is quite messy ... The only reason I suggested "Documents" is that not all distributions index all folders. As far as I can tell, everyone indexes "Documents" :-) > $ balooctl status > > It stays blank and I have to hit Ctrl + C to exit. Never met that! Doesn't sound healthy :-/ > $ balooctl purge > Stopping the File Indexer ............................ > > Not sure if you can see the output correctly, but it's just lots of dots and > "failed to stop" in the end. Have met that. More in the past, maybe less so recently... My gut feeling is the baloo index has got corrupted. It happens and in that case the best option is to start again from scratch. If you cannot do a "balooctl purge", do a "balooctl disable" (which might still fail to stop) and reboot. The "disable" should prevent baloo starting up again when you log back in. You should then be able to run a "balooctl monitor" in one window, a "balooctl purge" to delete the index and then a "balooctl enable" to start the indexing in a second window (it may be that you need a "balooctl enable" followed by a "balooctl enable" as it sometimes needs to be told twice) If you have no luck with "balooctl purge", the index file lives at: .local/share/baloo/index and you can stop baloo and delete it manually. > ... Yeah my neon is with me since 18.04 and I upgraded it to 20.04 There's a Bug 431664 about needing to reindex if you had been running a baloo 5.68 or earlier > Hope any of this makes sense. Thank you, yes :-)
(In reply to tagwerk19 from comment #8) > (In reply to Mina from comment #6) > > $ balooctl status > > It stays blank and I have to hit Ctrl + C to exit. > Never met that! Doesn't sound healthy :-/ Now seen some very similar behaviour Bug 435521
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/642