[Kde-pim] How to force a true reindex all.
Christian Mollekopf
chrigi_1 at fastmail.fm
Thu Mar 7 21:44:26 GMT 2013
On Sunday 03 March 2013 10.45:54 Lindsay Mathieson wrote:
Hey Lindsay,
> When I last asked this question I was told that using qdbusviewer to invoke
> "updateAll" on the nepomuk feeder would reindex all messages.
>
> Additionally there is the folder properties maintenance tab option, "Reindex
> all"
>
> Unfortunately for me, after much testing of them recently, none of them
> appear to rebuild a incomplete or corrupted index. I had a badly broken
> index, possibly due to the 4.10 feeder bugs, updateAll() just finished in
> seconds and "Reindex All" took longer, but made no difference.
>
> Only unsubscribing the folders in question then resubscribing seemed to fix
> the issue. And I noticed that the re-index took much longer than the
> previous ones, which lead me to wonder if the previous re-index was just
> iterating over the old incorrect index.
Jup, that was about what it did.
Currently there is no true "Reindex all" option available, but I'll try to add
a "remove all my indexed akonadi data from nepomuk"-option to a little helper
tool at least.
Here's what's happening for "updateAll" in current 4.10 branch (released with
4.10.2):
We query for all akonadi items which are supposed to be indexed (which can be
controlled from kmail), and then compare that list of items to what we can
find in nepomuk. All items are checked for modifications based on lastModified
date, and whatever hasn't been indexed or has changed meanwhile gets indexed.
Also items which are no longer supposed to be indexed or gone altogether from
akonadi are removed from nepomuk.
Note that this process is also run during akonadi startup, so "updateAll"
shouldn't be required normally. Also not that 4.10.1 didn't do that yet,
resulting in a lot of stuff never getting indexed which is why I changed the
behavior.
Cheers,
Christian
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list