I'm using the tracker indexing tool to search for and in files on my Ubuntu 10.10 amd64 system. Having recently added some of files into a single folder I wondered how to force tracker to re-index this folder so I would be able to perform search-queries on these files.
Any ideas? A terminal command would be completely sufficient.
This command will make Tracker reindex all its folders:
Not exactly what you want, but has helped me quite a few times.
With recent releases of
tracker
(mine is 1.12.0), you can force the re-indexing of a given folder simply typing:This causes the indexed information for
DIR_NAME
to be deleted and indexed again. Ir could be a directory or a file.tracker should watch the directory and automatically index any added files - so make sure watching is enabled in the preferences. but generally, my experience with tracker has been that it works inconsistently at best.
It seems as if @methadata's answer should be correct, but for me, tracker was still not indexing the directory; I also tried
tracker index -f DIR_NAME
. The only thing that worked for me was to get tracker to completely wipe the index and start indexing again from scratch:Source: tracker docs