[dolphin] [Bug 435119] Search doesn't work.
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Mon Mar 29 23:34:33 BST 2021
https://bugs.kde.org/show_bug.cgi?id=435119
--- Comment #3 from tagwerk19 at innerjoin.org ---
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...
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the kfm-devel
mailing list