Bug 352229 - Feature request : a reindex option to balooctl
Summary: Feature request : a reindex option to balooctl
Status: RESOLVED DUPLICATE of bug 353011
Alias: None
Product: Baloo
Classification: Unmaintained
Component: Baloo File Daemon (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Vishesh Handa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-03 16:26 UTC by nmset
Modified: 2015-10-05 09:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
adding a clear option to balooctl (1.91 KB, patch)
2015-09-04 15:57 UTC, nmset
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nmset 2015-09-03 16:26:53 UTC
This is a feature request, not a bug.
Files on network shares are not indexed by default. I use 'balooctl index' in a script to index files in those locations. They can be found nicely with baloosearch or in the various GUI tools. When such a file is modified, the updates are not indexed automatically, that's expected. But these updated files  cannot be indexed again manually. 'balooctl index' says they are already indexed. It's not sustainable to periodically delete baloo's database and recreate it again.

I wish balooctl gets a 'reindex' option, which would clear old entries related to a file and dig through it again. Ideally, it should do anything such only if the file has been modified since the last time it was processed.
Or balooctl could get a 'clear' option, which would remove any entry for a file. A nightly script could search for files modified in the last day and call 'balooctl clear' and 'balooctl index'.

For now, baloo writes in stone network files processed manually .

Thank you for considering.

Reproducible: Always

Steps to Reproduce:
1.Call 'balooctl index' for a file on a network share.
2.
3.

Actual Results:  
Skipping: <file>

Expected Results:  
Reindexing <file>

baloo version : 5.13.0
KDE Frameworks 5.13.0
Qt 5.5.0 (built against 5.5.0)
The xcb windowing system
Comment 1 nmset 2015-09-04 15:57:31 UTC
Created attachment 94398 [details]
adding a clear option to balooctl

This patch (baloo_clear.diff) adds a 'clear' option to balooctl.
Comment 2 nmset 2015-09-04 15:58:41 UTC
Additional info fr the above patch : I'm not at all familiar with baloo, Qt, KDE internals.
Comment 3 Vishesh Handa 2015-09-05 12:57:34 UTC
There is a `balooctl check` command which does that. Do you think that would work?
Comment 4 Vishesh Handa 2015-09-05 12:58:23 UTC
Git commit bb34144151b4e91af59db722e2c0fe502021f350 by Vishesh Handa.
Committed on 05/09/2015 at 12:56.
Pushed by vhanda into branch 'master'.

BalooCtl: Add a 'clear' command

Patch submitted by 'nmset <nmset@netcourrier.com>'.

M  +34   -0    src/tools/balooctl/main.cpp

http://commits.kde.org/baloo/bb34144151b4e91af59db722e2c0fe502021f350
Comment 5 nmset 2015-09-05 17:19:27 UTC
baloo check has a TODO status in main.cpp .

Anyway, I see that you've commited the proposed patch. Thanks.
Comment 6 Vishesh Handa 2015-09-05 18:56:28 UTC
Ah. I forgot we had disabled it. Marking as CONFIRMED and changing to to a bug. We should implement the 'check' functionality.
Comment 7 Vishesh Handa 2015-10-05 09:03:18 UTC

*** This bug has been marked as a duplicate of bug 353011 ***