How to Rebuild the Spotlight Index on Your Mac

by

Apple has enhanced Spotlight search in macOS in recent years, with the addition of Spotlight Suggestions allowing it to tap into a variety of online data sources like weather and sports. Nevertheless, helping you find apps, documents and other files stored on your Mac is still what Spotlight does best.

That's not to say its core function is infallible, however. If Spotlight can't find files that you know exist on your Mac, or if it stops prioritizing results based on your earlier searches, then it's probably a sign that your system's search index is damaged somehow.

If you're experiencing odd behavior when using Spotlight, you should try rebuilding its search database index. There are Terminal commands that will do the job, but you can achieve the same result via the regular macOS user interface in just a few quick steps. Here's how.

  1. Select System Preferences... from the Apple () menu at the top left of your screen.

  2. Click the Spotlight pane.

  3. Click the Privacy tab.
  4. Click the Add (+) button.

  5. Select the folder or disk whose index you wish to re-build, then click Choose. Alternatively, drag the folder or disk into the list. We've chosen Documents in our example.

  6. In the same list, click the folder or disk that you just added and then click the Remove (-) button.

  7. Click the red traffic light button to close System Preferences.

Once you've completed these steps, Spotlight will begin reindexing the contents of the folder(s) or disk(s) you chose, which may take some time and a few processor cycles. Depending on which version of macOS you're running, you may see a rebuild progress indicator in Spotlight's menu bar item. With a bit of luck, your Spotlight problems will have been resolved once indexing is complete.

You can also perform a system-wide re-index of the Spotlight database, among many other optimizations, using Titanium Software's free Onyx utility, which is available for all recent versions of macOS.

Top Rated Comments

(View all)
Avatar
24 months ago

You can also perform a system-wide re-index of the Spotlight database, among many other optimizations, using Titanium Software's free Onyx utility ('https://www.titanium-software.fr/en/onyx.html'), which is available for all recent versions of macOS.

You can also just run this command in Terminal and it will do a system-wide Spotlight reindex.

sudo mdutil -E /

I've tried this rebuild previously and found it did not change anything.
Anyone with different experience?

One issue I have noticed a Spotlight reindex will often fix is if you are getting an incorrect readout for Storage in System Report. If the Spotlight index is corrupted it will make that storage readout all wrong and a reindex can fix it.



Score: 12 Votes (Like | Disagree)
Avatar
24 months ago
It seems that Apple assumes Mac users only need to search Mac formatted drives that are connected directly to Mac computers running Mac OS. Forget about shared folders on Windows servers or read-only volumes such as NTFS drives or DVD media. Even with simple filename based searches, Mac OS 9 from 20 years ago or even Unix find seems to find filenames better than Spotlight when searching "non Apple approved" volumes.

Also, what search engine does Apple use on their own Support website? Trying to search for a simple phrase returns hundreds of pages of irrelevant results. It also seems like their website search uses implicit "OR" instead of "AND" for searches containing multiple words. It's pathetic that I have to use an external Google search to find stuff inside Apple's own website.
Score: 6 Votes (Like | Disagree)
Avatar
24 months ago
Onyx is a great utility, been using it for years. It also gives you access to enable a bunch of other hidden settings and options. For example, One option I like to enable is turning launchpad's background to greyscale. I find this makes it easier and faster to locate items on the launchpad that I don't frequently access.
Score: 5 Votes (Like | Disagree)
Avatar
24 months ago
This is a more extensive rebuild as it removes a possibly corrupt index database -

• mdutil -i off /
• sudo rm -rf /.Spotlight-V100
• sudo rm -rf /.Spotlight-V200
• mdutil -i on /
• mdutil -E /
Score: 5 Votes (Like | Disagree)
Avatar
24 months ago
I never knew this was possible.

I love these tutorials!
Score: 3 Votes (Like | Disagree)
Avatar
24 months ago
Weird timing. I was having an issue with two of my Sierra Macs where the Spotlight window would disappear right after beginning to type. I forced a re-index and it seems to have fixed the issue.
Score: 2 Votes (Like | Disagree)

Top Stories

Here's How You Can Download iOS 14 and iPadOS 14 Around the World [It's Out]

Wednesday September 16, 2020 2:36 am PDT by
Apple's official public release of iOS 14 and iPadOS 14 dropped on Wednesday, September 16, just a day after the company released the Golden Master to third-party developers. Also set to be made available to the general public for the first time are watchOS 7 and tvOS 14. Getting Started With iOS 14 Video Click image to watch iOS 14 Getting Started While that's left a lot of developers...

When Will the iPhone 12 Launch? Here's What We Know

Wednesday September 16, 2020 6:12 am PDT by
Yesterday's "Time Flies" Apple event saw the release of the Apple Watch Series 6, Apple Watch SE, iPad 8, and iPad Air 4, but no new iPhone models. Rumors before the event strongly alleged that it would not see the unveiling of new iPhones, with many reports pointing to an October launch. The lack of new iPhone models yesterday seems to confirm that the iPhone 12 lineup will not appear...

Apple Releases iOS 14 and iPadOS 14 With Home Screen Redesign, App Library, Compact UI, Translate App, Scribble Support, App Clips, and More

Wednesday September 16, 2020 12:48 pm PDT by
Apple has released iOS 14 and iPadOS 14, the newest operating system updates designed for the iPhone and iPad. As with all of Apple's software updates, iOS 14 and iPadOS 14 can be downloaded for free. iOS 14 is available on the iPhone 6s and later, while iPadOS 14 is available on the iPad Air 2 and later. The updates are available on all eligible devices over-the-air in the Settings app. To ...

Apple Releases Safari 14 for Mac Ahead of macOS Big Sur Launch

Wednesday September 16, 2020 1:40 pm PDT by
macOS Big Sur didn't launch alongside iOS 14, iPadOS 14, tvOS 14, and watchOS 7 today, with the update coming later this fall, but Apple did release the Safari 14 update for macOS Catalina and macOS Mojave users. Safari 14 brings improved performance, customizable start pages, a Privacy Report to see which cross-site trackers are being blocked, and a new tab bar design that provides tab...

Apple Updates AirPods 2 and AirPods Pro Firmware to Version 3A283

Monday September 14, 2020 11:24 am PDT by
Apple today released new 3A283 firmware updates for the second-generation AirPods and the AirPods Pro. The second-generation AirPods are being updated from the 2D15 firmware they were previously running, while the AirPods Pros are being updated from the 2D27 firmware they had installed previously. Apple does not provide details on what's included in refreshed firmware so we don't know what's ...

iOS 14 Picture in Picture No Longer Working With YouTube's Mobile Website in Safari [Without Premium]

Friday September 18, 2020 12:21 pm PDT by
Apple in iOS 14 added Picture in Picture to the iPhone, a feature designed to let you watch a video in a small screen on your device while you continue to do other things on the phone. When Picture in Picture was working with YouTube The YouTube app doesn't support Picture in Picture, but up until yesterday there was a functional workaround that allowed videos from YouTube.com to be watched...

Hands-On With the New Apple Watch Series 6 and Apple Watch SE

Friday September 18, 2020 1:19 pm PDT by
Today's the official launch date for the Apple Watch Series 6 and the Apple Watch SE, both of which Apple announced on Tuesday. We picked up a couple of the new models and thought we'd give them a quick look for MacRumors readers thinking of ordering a new watch. Apple Watch Series 6 & Apple Watch SE Hands-On! When it comes to design, both the $399 Series 6 and the $279 SE look just like...

iOS 14.2 Beta Adds New Shazam Music Recognition Feature for Control Center

Thursday September 17, 2020 3:36 pm PDT by
Apple today released the first beta of iOS 14.2 to developers for testing purposes, and the new update introduces a Music Recognition control for the Control Center. The new feature lets you discover music playing around you and it recognizes the music playing with in apps, even when you're wearing AirPods. Songs pop up as notifications, and you can tap to listen in Apple Music....

8 Third-Party Home Screen Widgets That You Can Try Out Now on iOS 14

Wednesday August 5, 2020 12:56 pm PDT by
One of the biggest new features of iOS 14 is Home Screen widgets, which provide information from apps at a glance. The widgets can be pinned to the Home Screen in various spots and sizes, allowing for many different layouts. When the iOS 14 beta was first released in June, widgets were limited to Apple's own apps like Calendar and Weather, but several third-party developers have begun to test ...

Apple Releases watchOS 7 With New Watch Faces, Family Setup, Sleep Tracking, Handwashing Help and More

Wednesday September 16, 2020 12:47 pm PDT by
Apple today released watchOS 7, the newest version of the watchOS operating system designed to run on modern Apple Watch models. The watchOS 7 update comes after several months of beta testing. ‌watchOS 7‌ can be downloaded for free through the dedicated Apple Watch app on the iPhone by going to General > Software Update. To install the new software, the Apple Watch needs to have at...