=============
You can also do this from the command line with the mdutil command. Launch Terminal and enter:
sudo mdutil -E /
and the index file will be erased and rebuilt. The "/" stands for the boot volume; you can substitute the pathname of any volume here.
Substitute "-s" for "-E" to show if indexing is enabled on the volume, and "-i on" or "-i off" to enable or disable indexing. Note that mdutil must be run as root; hence the sudo.
You can also use mdimport to index a subset of files:
mdimport ~/Documents
would index your Documents folder and
mdimport -r /Library/Spotlight/AppleWorks.mdimporter
would index all AppleWorks files on your computer.
mdimport -L
will list all installed metadata importers.
=====================
Tip voor het openen van alle muziek files in je muziekfolder als die niet geindexeerd worden:
spotlight wouldn't find any of my iTunes tracks nomatter what I did. The same for some word documents. However, they both got indexed when I openned them in the finder (not when I played the tunes in iTunes). So I opened iTunes and minimized it (important or you'll have to leave your mac alone a while) and turned off the sound (you may like it but it's a pretty odd effect). Then ran the command below
find ~/Music -name '*.mp3' -or -name '*m4p' -exec open {} \;
This opens in turns each and every track. Voilla, indexed.
May be worth a try if the mdimport command gives no mileage.
=========================================================