Rebuild the Spotlight Index
Do you need to rebuild the entire Spotlight index on a Mac? It’s easy to do, but can take a while. Here’s how to start the reindexing process of an entire drive using the Spotlight control panel:
- Launch System Preferences from the Apple menu
- Click on “Spotlight” and then click on the “Privacy” tab
- Drag Macintosh HD (and other drives if necessary) into this window
- Click “OK” when asked to confirm
- Now select the drive(s) you just added and click the “-” minus button to remove it from the list
If this doesn’t spur a reindexation of the drive, you may need to initiate it manually through the command line. Open Terminal and use the following command string to do so:
sudo mdutil -i on /
Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.
Note: if an item is left under the “Privacy” list, it will exclude from Spotlight indexing completely.
Spotlight will immediately begin to reindex the drive(s) you added and then removed from the Privacy list. How long it takes to reindex the drive varies, ranging from 30 minutes to several hours, depending on the speed of the drive and it’s contents. At any point, you can pull down the Spotlight menu and check the progress:
Rebuilding and reindexing Spotlight is an excellent troubleshooting technique when you encounter problems with the Mac search client. If you find Spotlight isn’t working at all, try some of these other troubleshooting tips too.