Bug 303671

Summary: Provide a button to clear all the indexed data
Product: [Unmaintained] nepomuk Reporter: Vishesh Handa <me>
Component: kcmAssignee: Nepomuk Bugs Coordination <nepomuk-bugs>
Status: RESOLVED FIXED    
Severity: task CC: kde, mmckeen
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Button in KCM to clear the file index

Description Vishesh Handa 2012-07-17 10:33:20 UTC
The user should have an option to clear all the file index data and restart indexing without having to resort to the shell. Provide some button, maybe under advanced, to allow this.

Relevant Code: kde-runtime/nepomuk/kcm/

Since the clearing of all indexed data can take some time, it might be good to show some kind of progress window?

Hint: Nepomuk::removeDataByApplication should do the trick.
Comment 1 Matthew McKeen 2013-04-13 05:47:38 UTC
I'll take this on, shouldn't take very long.
Comment 2 Matthew McKeen 2013-04-13 06:20:41 UTC
I am taking on this task.  Should be done in a day or two.
Comment 3 Matthew McKeen 2013-04-14 21:13:43 UTC
Created attachment 78903 [details]
Button in KCM to clear the file index

A simple patch to add a button to the Nepomuk KCM to clear the file index using removeDataByApplication().
Comment 4 Ignacio Serantes 2013-04-14 21:35:30 UTC
I'm not tested it but using removeDataByApplication() will be extremely slow and some kind of database problems probably don't be fixed if they exists.

The fastest, and more reliable, method is recreate the database.
Comment 5 Myriam Schweingruber 2013-04-14 21:58:37 UTC
(In reply to comment #3)
> Created attachment 78903 [details]
> Button in KCM to clear the file index
> 
> A simple patch to add a button to the Nepomuk KCM to clear the file index
> using removeDataByApplication().

Please submit this to http://reviewboard.kde.org, where patches are reviewed. You will need an account on http://identity.kde.org to do so.