How to Rebuild Spotlight's Index
Matt Cone February 26, 2021 Tutorials Mac
Spotlight is the revolutionary search technology built into macOS that creates an index of practically everything on your hard drive — including email messages, contacts, and even calendar events — and then uses this index to search your hard drive. Your Mac is supposed to update this index in real time when you create or modify files or folders, but problems occasionally crop up. Spotlight won’t work correctly if this index is incomplete or corrupted. When search results don’t appear as expected, it’s probably time to manually rebuild Spotlight’s index.
Here’s how to rebuild Spotlight’s index on your Mac:
From the Apple menu, select System Preferences.
Click Privacy. The window shown below appears.
Click the + button.
Select a hard disk or volume.
Select the hard disk or volume you just added, and then click the - button. Spotlight rebuilds the index of the selected hard disk or volume — a process that can take between 30 minutes and a couple of hours, depending on how many files you have.
Select the Spotlight menu to verify that the index is being rebuilt, as shown below.
That’s it! Your searches should be more accurate after Spotlight rebuilds the index.
Rebuilding the Spotlight Index Using the Command Line
You can also use the command line to rebuild Spotlight’s index. Open the Terminal application and enter the following command:
sudo mdutil -E /
Authenticate with your administrator password, and a message appears indicating that the index will be rebuilt. Spotlight rebuilds the index of your hard disk. You can track the rebuilding progress by clicking the Spotlight menu.
Subscribe to our email newsletter
Sign up and get Macinstruct's tutorials delivered to your inbox. No spam, promise!