Bug 382117 - Exclude folders ignores wildcard patterns
Summary: Exclude folders ignores wildcard patterns
Status: CONFIRMED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.35.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Pinak Ahuja
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-08 07:50 UTC by xdmx
Modified: 2021-10-07 07:05 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xdmx 2017-07-08 07:50:13 UTC
I'd like to exclude all folders based on a pattern. I've tried to add to the config the followings – one at a time – without getting any result:
   exclude folders[$e]=node_packages
   exclude folders[$e]=*node_packages*
   exclude folders[$e]=$HOME/Projects/*/node_packages/*
   exclude filters=node_packages
   exclude filters=*node_packages*

Having many projects that use npm I have literally millions of files that are getting indexed but that I don't care, and every time I upgrade them (by using yarn upgrade, which deletes all folders and recreate them) I have baloo indexing them all again.

It'd be very useful to be able to exclude all node_packages folders from the indexing.
Comment 1 Morten Sjoegren 2017-12-03 19:51:43 UTC
I have the same problem.

I work with alot of nodejs and NativeScript projects, both results in alot of files being indexed that shouldn't be.

My desktop becomes unusable when the baloo indexer is runnning, everything just hangs. So I had to disable it.
Comment 2 Øystein Olsen 2017-12-12 15:42:45 UTC
I have the same problem on KDE Neon. I have large number of differen build folders for different projects. They area usually called build-project_name-something, and I have to manually specify each of them to stop baloo from indexing them during building or testing.
Comment 3 Nate Graham 2018-05-10 02:32:54 UTC
FWIW, you guys should appreciate https://phabricator.kde.org/D12787.
Comment 4 xdmx 2018-05-13 21:48:03 UTC
Awesome, thank you Nate! Hopefully Baloo will work better now :)
Comment 5 Nate Graham 2018-05-15 22:40:41 UTC
Git commit 7529727e46242d2fdd71c4e8c92363600373fcb6 by Nathaniel Graham.
Committed on 15/05/2018 at 22:33.
Pushed by ngraham into branch 'master'.

Ignore more types of source files

Summary:
Add more types of development-related files to the exclusion lists. These files aren't useful to index, and having them there can bog down Baloo.
Related: bug 394002, bug 390932
FIXED-IN 5.47

Test Plan: Created a bunch of files of the newly excluded types. Baloo didn't index them.

Reviewers: michaelh, bruns

Reviewed By: bruns

Subscribers: broulik, cfeck, kde-frameworks-devel, #baloo

Tags: #frameworks, #baloo

Differential Revision: https://phabricator.kde.org/D12787

M  +37   -5    src/file/fileexcludefilters.cpp

https://commits.kde.org/baloo/7529727e46242d2fdd71c4e8c92363600373fcb6