Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Enable Spotlight for disk images' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Enable Spotlight for disk images
Authored by: wbiggart on May 03, '05 04:04:20AM
you can force mdimport to index any path that you want. mdimport is the process that actually indexes the files, whereas mdutil sets indexing on/off for volumes. i think.
 $>mdimport -f /path/to/path 
the -f switch tells mdimport to ignore the path restrictions that it knows about. i forget where i read this, but someone else figured it out.

walter

[ Reply to This | # ]
10.4: Enable Spotlight for disk images
Authored by: t0fukrunch on May 04, '05 12:26:28PM

I think this command only forces a one time indexing of the specified directory. To test this you can execute the mdfind -live testme command and then try creating a directory called "testme" in one of the directories in question. If a directory is being monitored by Spotlight then mdfind should detect changes in it almost immediately, and consequently "findme" will be found almost immediately.

A message on Apple's Spotlight discussion forum mentions a way to get around this by using the 'INCLUDE' section of the /.Spotlight-V100/_rules.plist file, but the technique described there hasn't worked for me since, among other issues, Spotlight seems to overwrite the _rules.plist file when a mdutil -E / command is issued to reindex the root volume. I tried modifying _rules.plist immediately after issueing the reindex command, but this didn't work for me either.



[ Reply to This | # ]
10.4: Enable Spotlight for disk images
Authored by: t0fukrunch on May 04, '05 02:39:33PM
Doh -- it turns out I had an error in my _rules.plist file so that mdutil -E / replaced it with a fresh copy. The aformentioned technique works for me as promised!

[ Reply to This | # ]