# Indexed Search with BTRFS (not Baloo)

**URL:** <https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787>\
**Category:** Newbie\
**Created:** [July 31, 2022, 3:47pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787 "2022-07-31T15:47:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [July 31, 2022, 3:47pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/1 "2022-07-31T15:47:13Z")

</div>

I am sorry to keep bothering you.  
We know there is a bug with Baloo under BTRFS. It reindexes all my data, PDFs with every snapshot. So the laptop is always busy indexing files and index growing forever. Searching for a single unique file in Dolphin it returns several results of this single and unique file (multiple snapshots)

I am on KDE Plasma, Dolphin, Baloo.

I wonder if there is an indexed search tool that plays well with BTRFS? (preferably unde KDE Plasma).

P.S: I do not mind considering some other DE though I love Plasma. But I may consider LXQT, Gnome, MATE, XFCE, Cinnamon if I can do desktop search (preferably in the file manager) under BTRFS.

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [July 31, 2022, 3:53pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/2 "2022-07-31T15:53:56Z")

</div>

Why would you need indexed search in this day and age at all?

![honka_animated-128px-36](https://forum.endeavouros.com/uploads/default/original/3X/e/c/ecbf790e7e428a9254c712eb3eeb9a530f6caa98.gif)

I don’t use Baloo and search is pretty damn fast without any index, regardless of filesystem…

For example, searching 3.6 TiB hdd drive full of music (583 115 files) for all `.wav` files recursively via dolphin’s search without any indexing takes about 12 seconds on my system.

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [July 31, 2022, 3:59pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/3 "2022-07-31T15:59:55Z")

</div>

> [@keybreak](#):
>
> Why would you need indexed search in this day and age at all?

> [@keybreak](#):
>
> this day

I have a lot of documents, other than books (PDF), legal, invoices, warranty… lots actually.

> [@keybreak](#):
>
> and age

Well, I am still alive, I still have a lot of stuff to do and follow up and I do research as well.

> [@keybreak](#):
>
> I don’t use Baloo and search is pretty damn fast without any index

How is that? Fast search file content? Let me try Kfind (Ooops, not installed! What you recommend to install?)

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [July 31, 2022, 4:01pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/4 "2022-07-31T16:01:48Z")

</div>

> [@limotux](#):
>
> Ho is that? Fast search file content? Let me try Kfind

Oh wait, indexed search means file contents?  
I always thought it’s just mechanism to quickly search for files themselves by caching them in some db, which was useful on old hardware back in day…

But if you’re correct - then it’s whole another story.

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [July 31, 2022, 4:05pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/6 "2022-07-31T16:05:04Z")

</div>

> [@keybreak](#):
>
> indexed search means file contents

Yes… unfortunately non indexed search is too slow.  
I don’t mind a bit slow though.  
What you recommend I try (from those in Dolphin… Kfind? Fsearch? they are not indexed… right?)

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [July 31, 2022, 4:06pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/7 "2022-07-31T16:06:33Z")

</div>

Yeah you’re right, i just had different concept of indexed search before [https://community.kde.org/Baloo](https://community.kde.org/Baloo)

> [@limotux](#):
>
> What you recommend I try (from those in Dolphin… Kfind? Fsearch? they are not indexed… right?)

Not an expert, since i never had a need to do such task, maybe @dalto will have some ideas 🙃

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [July 31, 2022, 4:06pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/8 "2022-07-31T16:06:49Z")

</div>

How many documents are we talking about and what formats are they in? Searching file contents without an index might be very slow without an index. Especially if you have a large number of PDFs requiring searching.

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [July 31, 2022, 4:08pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/9 "2022-07-31T16:08:02Z")

</div>

> [@keybreak](#):
>
> maybe @dalto will have some ideas 🙃

@dalto  
I know I am irritating you. I ask too much!

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [July 31, 2022, 4:10pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/10 "2022-07-31T16:10:29Z")

</div>

> [@dalto](#):
>
> How many documents are we talking about and what formats are they in

A few hundreds at the moment and mostly PDF. and another .txt set of files (and html) from Zim Notes)

Let us assume +/ 1000 to 1200!

Just curious, if installed Kfind, would it be using Baloo index? Would it create its own index? Would Kfind have problems with BTRFS?

UPDATE:  
Just installed Kfind, even restricted search to PDF. Horribly slow to search content! Won’t fit my use!

---

<div class="post-metadata">

**Author:** ![anon11595408](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@anon11595408](https://forum.endeavouros.com/u/anon11595408)\
**Post date:** [July 31, 2022, 4:22pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/11 "2022-07-31T16:22:50Z")

</div>

Indexing a whole library of pdf files and others of course can take “forever”, regardless of which one you choose, me thinks.

I’d be interested to learn which crawler would be a best solution to this problem, as well!

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [July 31, 2022, 4:23pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/12 "2022-07-31T16:23:03Z")

</div>

You could try `recoll` from the repos. It is a file indexing tool.

I did some testing with it and seems quite fast once the index is complete.

> [@anon11595408](#):
>
> Indexing a whole library of pdf files and others of course can take “forever”, regardless of which one you choose, me thinks.

I think he is referring to search time, not index build time. kfind doesn’t use an index I don’t think.

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [July 31, 2022, 4:25pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/13 "2022-07-31T16:25:26Z")

</div>

> [@dalto](#):
>
> could try `recoll` from the repos

**No problems with BTRFS?** (I hope)  
I tried it once and it was OK.  
Just want to be sure it will not have the same problem with BTRFS as Baloo.

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [July 31, 2022, 4:27pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/14 "2022-07-31T16:27:14Z")

</div>

> [@limotux](#):
>
> Just want to be sure it will not have the same problem with BTRFS as Baloo.

I can’t guarantee it but those problems are pretty specific to the way baloo tracks devices.

If you decide to try it, be sure to check the optional dependencies and ensure you have the ones you want for indexing various formats.

---

<div class="post-metadata">

**Author:** ![anon11595408](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@anon11595408](https://forum.endeavouros.com/u/anon11595408)\
**Post date:** [July 31, 2022, 4:28pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/15 "2022-07-31T16:28:10Z")

</div>

> [@dalto](#):
>
> I think he is referring to search time, not index build time. kfind doesn’t use an index I don’t think.

So kfind could be better when it comes to search in-document keywords? Sorry, I don’t know how to ask ‘better’…

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [July 31, 2022, 4:28pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/16 "2022-07-31T16:28:58Z")

</div>

> [@anon11595408](#):
>
> Indexing a whole library of pdf files and others of course can take “forever”,

Well, I when I start I make sure I start before bed time.  
When I wake up in the morning it would be done.

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [July 31, 2022, 4:30pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/17 "2022-07-31T16:30:17Z")

</div>

> [@anon11595408](#):
>
> So kfind could be better when it comes to search in-document keywords?

I just installed and tried it. It is horribly slow to search inside files.

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [July 31, 2022, 4:31pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/18 "2022-07-31T16:31:14Z")

</div>

> [@anon11595408](#):
>
> So kfind could be better when it comes to search in-document keywords? Sorry, I don’t know how to ask ‘better’…

kfind is searching, not indexing. So if you try to do a content search on a large library it is essentially doing the same thing an indexer would do for _each_ search.

I don’t think that is the intended use case for kfind.

---

<div class="post-metadata">

**Author:** ![mrvictory](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@mrvictory](https://forum.endeavouros.com/u/mrvictory)\
**Post date:** [July 31, 2022, 4:32pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/19 "2022-07-31T16:32:34Z")

</div>

AFAIK Baloo defaults to searching your home folder… This is configurable in KDE System Settings. If you have a folder like /home/$USER/snapshots you can exclude that folder or manually specify folders like ~/Desktop, ~/Downloads.

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [July 31, 2022, 4:33pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/20 "2022-07-31T16:33:53Z")

</div>

> [@dalto](#):
>
> I can’t guarantee it but those problems are pretty specific to the way baloo tracks devices

mmm… thinking… so probably it will work? How can we know?

OK… If I converted my disk to BTRFS, can I revert back to EXT4 in case needed?  
I would better convert and revert rather than fresh install.  
I can fresh install IFF (if and only if it is confirmed it will work)  
Hopefully someone using BTRFS + Recoll (or any other) give us a clue.  
Maybe someone with BTRFS might be interested to try Recoll and report back. Uninstall it if it didn’t work as expected!

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [July 31, 2022, 4:34pm UTC](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787/21 "2022-07-31T16:34:23Z")

</div>

I feel like I have mentioned this in several topics already but **the issue isn’t caused by indexing snapshots**. It is a design flaw in baloo.

[Next page](https://forum.endeavouros.com/t/indexed-search-with-btrfs-not-baloo/29787.md?page=2)
