Spotlight usually performs its work perfectly; however, sometimes you may face an issue when the Spotlight search is not working correctly, displaying odd results or stopping the search for items you know exist. In this case, rebuilding the Spotlight index can help you to resolve the issue. Follow our Spotlight troubleshooting guide to learn how to reindex Spotlight on your Mac.
- What is Spotlight?
- How to rebuild the Spotlight index via System Preferences
- How to reindex Spotlight with Terminal
- The quickest way to rebuild the Spotlight database
What is Spotlight?
Spotlight is a tremendously useful option provided on macOS that allows you to quickly find any file, document, app, mail, and more, on your Mac. For most users, the Spotlight search is one of the most used macOS features on a daily basis.
Using Spotlight on Mac is super easy. Simply click the Spotlight icon in the menu bar and type your query in the search field.
Note, that Spotlight can’t find hidden files on your Mac. For finding and operating hidden files on Mac you can use a special tool from MacCleaner Pro. Also, if you need to rebuild the Spotlight, MacCleaner Pro again can help you. Rebuilding Spotlight index on Mac means resetting search database which can help you fix some issues with Spotlight search results.
How to rebuild the Spotlight index via System Settings
When the Spotlight search is not working on your Mac correctly, try to reindex it via System Preferences.
Here are the steps to rebuild Spotlight index:
- Open System Settings.
- click Siri & Spotlight in the sidebar.
- Scroll down and click Spotlight Privacy.
- Add and then remove items from the locations list.
- Your Mac will reindex Spotlight.
If you have old operating system installed on your Mac, follow these stesp:
- Open System Preferences.
- Click on the Spotlight icon.
- Switch to the Privacy tab of Spotlight.
- Click on the Plus button → select the folders or disks whose index you want to refresh in Spotlight search.
- Click the Choose button to add them to the list of locations prevented from being searched by Spotlight. In our case, we added the whole Macintosh HD.
- Then click again on the folder you have just added and click the Minus “–” button to remove it from the list of Spotlight search.
- Close System Preferences. After these steps, the Spotlight indexing will be refreshed.
How to reindex Spotlight with Terminal
Another way to rebuild the macOS Spotlight search is to use the command line in Terminal.
Here is how to rebuild the index of Spotlight using the Terminal app:
- Open Terminal from Launchpad.
Copy and paste the following command into the Terminal window and click the Return key.
sudo mdutil -i on /
- It may ask to enter your admin password. Enter your password and click Return. You will see the message that the indexing of the Spotlight is enabled.
The quickest way to rebuild the Spotlight database
Besides the fact that the first two methods of reindexing the macOS search are not time-consuming, there is an even quicker and easier way to perform this task. This is possible with MacCleaner Pro. MacCleaner Pro allows you to fix the Spotlight search and additionally provides a wide range of options to speed up your Mac, clean up your hard drive and fix many other Mac issues.
Here is how to rebuild the Spotlight index with MacCleaner Pro:
- Launch MacCleaner Pro.
- Switch to the Speed up Mac section and select Reindex Spotlight.
- Run the Spotlight reindexing task by clicking the Speed Up button.
That’s all. As we said, with the help of MacCleaner Pro it’s super easy and fast to reindex Spotlight!
Note, with MacCleaner Pro you can also Reindex your Mail.