This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Dolphin: Baloo: Searching: Index, supported files

Tags: None
(comma "," separated)
badofum
Registered Member
Posts
7
Karma
0
Hello,

Dolphin has an integrated search tool.

As I want to use Dolphin together with this integrated search tool in Xfce, I am interested in the following question:

When does Dolphin update its index?
A) Manually by the user?
B) Once every hour?
C) Once, when the system is booted new?
D) Automatically whenever the name of a file has changed or when a new file was added?
E) Other.

Would appreciate some answer. Thank you.

Last edited by badofum on Wed Apr 14, 2021 3:15 pm, edited 2 times in total.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Dolphin uses what the system provides, and in Plasma this is Baloo. You can of course use this on other desktops but you will have to start it as it will not run automatically just by using Dolphin.
Moving this to Desktop Search...


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
badofum
Registered Member
Posts
7
Karma
0
Thank you @Mamarok.
In this case my question is:

When does -- BALOO -- update its index?
A) Manually by the user?
B) Once every hour?
C) Once, when the system is booted new?
D) Automatically whenever the name of a file has changed or when a new file was added?
E) Other.
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS
Theoretically option D if you enable file indexing and file path is included.

You can also index or delete files manually using command "balooctl" index and "balooctl clear".


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
You can find also more information about Baloo in our wiki: https://community.kde.org/Baloo/Configuration


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
badofum
Registered Member
Posts
7
Karma
0
Thank you all.

I have not activated baloo until now, and of course as expected I have no index in ~/.local/share/baloo .

-> So I would expect, that searching would not work.
But searching nevertheless works. A little slow, but it works. Why?
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
I guess that is due to the basic file indexing in Linux, I suppose every distribution does have some running tool, be this locate (and updatedb) or similar.

As said before: Dolphin just uses what is running underneath, Baloo is just one of many different file indexing possibilities in the user space, with some configuration and tweaking options other tools don't provide.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
badofum
Registered Member
Posts
7
Karma
0
Thank you.

This is a question for "content searching":
Where can I find a list with ALL docments that baloo does support for indexing for content search?

I am looking for a list like:
-LibreOffice *.odt
-Micrsosoft Word *.doc
-Microsoft Visio *.vsd
-Microsoft Visio *.vsdx
-PDF
...
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS
If that list exists I don't know where it can be located.

Here are the current available extractors and with the file name is easy to guess what it do:
https://github.com/KDE/kfilemetadata/tree/master/src/extractors


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
badofum
Registered Member
Posts
7
Karma
0
Not sure if I miss anything.

But as far as I can see,
https://github.com/KDE/kfilemetadata/tr ... extractors
is only to extract meta-data text.

Quote:
"This library is typically used by file indexers to retreive the metadata. "
https://github.com/KDE/kfilemetadata

Such things like tags in documents, music title/album from mp3, meta information in photos and so on and not to index the content of documents. Do I miss anything?
bbk
Registered Member
Posts
4
Karma
0
OS
My 2 cents:
1. "When does Dolphin update its index?"
- Whenever the index file in ~/.local/share/baloo is deleted Baloo rebuilds the index from scratch. You can do this directly or via the command
Code: Select all
balooctl purge
. In general, I recommend using the CLI to manage Baloo. If only the file names are indexed, indexing of about 750.000 files on a NAS takes less than an hour, however, it takes almost a day if also the file content is indexed. The size of the index is then many GBs.
- If the inotify watch limit is sufficient high, baloo monitors all indexed folders and updates automatically any change almost immediately. In case that another host makes changes e.g. on a NAS, run
Code: Select all
balooctl check
and Baloo searches for the unindexed files.
2. "I have not activated Baloo ... but searching nevertheless works. Why?"
I assume that KFind or some other search tool is running instead. It may not use an index, which is why the search takes its time. In Dolphin you may switch between various installed search tools (e.g. Baloo, KFind, FSearch, AngrySearch, Recoll, etc.).
3. "Where can I find a list with ALL docments that baloo does support for indexing for content search?"
Well, I don't know of such a list, but
Code: Select all
balooctl config ls excludeFilters
&&
balooctl config ls excludeMimetypes
provide a list of the excluded filters and mimetypes. This can be changed using the parameters "add" and "remove". The converse argument would say, that whatever is not excluded is included for indexing. You must not forget to run
Code: Select all
balooctl config set contentIndexing yes
.

Edited by moderator for better readability


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]