Bug 321796 - Indexer passive (with a clean db at least)
Summary: Indexer passive (with a clean db at least)
Status: RESOLVED FIXED
Alias: None
Product: nepomuk
Classification: Miscellaneous
Component: fileindexer (show other bugs)
Version: git master
Platform: Other Linux
: NOR grave
Target Milestone: ---
Assignee: Nepomuk Bugs Coordination
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-30 15:54 UTC by Hrvoje Senjan
Modified: 2013-10-04 13:47 UTC (History)
2 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 Hrvoje Senjan 2013-06-30 15:54:24 UTC
So, again cleaned the db. This now is something i noticed few weeks ago, but somehow forgot to report. 
1) fileindexer seems to have lesser priority than e.g. akonadi_nepomuk_feeder
2) it appears to index only new/changed files -> e.g. touch a.txt will index the file, but if the file was there already, it wouldn't be indexed. Or, e.g. songs get indexed only after they start playing in clementine

Reproducible: Always

Steps to Reproduce:
1. Clean the db, re-login/restart nepomuk

Actual Results:  
Indexed:
Files: 3
Emails 20100
running for couple of hours at least. Files appeared only after i turned of akonadi.
Usually i would have at least 15000, 20000 files

Expected Results:  
All files in checked dirs should be indexed in that time

Let me know what info is needed. This isn't again that recursive thing, as when one creates files in further subdirs, they get indexed. Same results w/ & w/o filewatcher.
Comment 1 Hrvoje Senjan 2013-09-04 20:54:16 UTC
Ping?
This is still valid, btw. Workaround is to uncheck, apply settings, and check again wanted folder(s)...
Comment 2 Vishesh Handa 2013-10-04 13:47:21 UTC
I think the problem is that with 4.11, the nepomuk file indexer no longer iterates over the entire file system and checks if a file has been indexed or requires reindexing on startup. It now only relies on the file system notifications telling it to index a file.

So when you cleaned the db, you did not tell the file indexer to index everything from scratch. You can do that by editing the nepomukstrigirc file and changing - first run=true.

I'm not sure how to fix this from the code. Any suggestions? Till then I'm marking this bug as fixed.