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
20 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
20 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
20 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
20 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: 5 Votes (Like | Disagree)
Avatar
20 months ago
I never knew this was possible.

I love these tutorials!
Score: 3 Votes (Like | Disagree)
Avatar
20 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

Five Mac Apps Worth Checking Out - June 2020

Tuesday June 2, 2020 2:25 pm PDT by
Apps developed for the Mac often don't receive as much coverage as apps designed for iPhones and iPads, so we have a series at MacRumors that highlights interesting Mac apps that are worth taking a look at. This month's apps are designed to make working from home a little bit easier. Subscribe to the MacRumors YouTube channel for more videos. Meeter (Free) - Working from home often...

iPhone 13 Prototype Mockup Depicts Notch-Free Design and USB-C Port

Thursday June 4, 2020 10:07 am PDT by
We still have a few months to go before Apple unveils the iPhone 12, but rumors about the iPhone 13, coming in fall 2021, are already circulating. Japanese site Mac Otakara today shared a rough 3D printed mockup of a 5.5-inch iPhone said to be coming in 2021, which is from "Alibaba sources." The model may be built on leaked specifications and rumors, but where the info comes from is unclear. ...

iPad Pro With A14X Chip, 5G, and Mini-LED Display Expected in First Half of 2021

Wednesday June 3, 2020 6:22 am PDT by
Apple plans to launch new iPad Pro models with an A14X chip, 5G connectivity, and a Mini-LED display in the first or second quarter of 2021, according to the increasingly reliable Twitter account L0vetodream. The leaker claims that the new iPad Pro models will be equipped with Qualcomm's Snapdragon X55 modem, which supports both mmWave and sub-6GHz. mmWave is a set of 5G frequencies that...

Apple's First MacBook Pro With a Retina Display Will Become 'Obsolete' in 30 Days

Monday June 1, 2020 7:50 am PDT by
If you are still hanging on to a Mid 2012 model of the 15-inch MacBook Pro with a Retina display, and require a new battery or other repairs, be sure to book an appointment with a service provider as soon as possible. In an internal memo today, obtained by MacRumors, Apple has indicated that this particular MacBook Pro model will be marked as "obsolete" worldwide on June 30, 2020, just over...

$5 Billion Lawsuit Accuses Google of Tracking Chrome Users in Incognito Mode

Wednesday June 3, 2020 3:13 am PDT by
A proposed class action lawsuit in the U.S. has accused Google of violating federal wiretap laws by tracking the online activities of users when in Incognito mode. According to Reuters, the class action argues that by surreptitiously collecting information about what people view online and where they browse when they use Chrome's private browsing mode, Google has been intentionally deceiving...

Next iPad Air Could Feature a USB-C Port Instead of a Lightning Port

Tuesday June 2, 2020 8:30 pm PDT by
The fourth-generation iPad Air may be equipped with a USB-C port instead of a Lightning port, according to a new report from Japanese site Mac Otakara that says the information comes from a Chinese supplier. Apple transitioned to USB-C for its iPad Pro models in 2018, but other iPads have continued to feature a Lightning port for charging purposes. Mac Otakara says that the new iPad Air will ...

Next Apple Pencil Could Be Released in Black

Tuesday June 2, 2020 10:25 am PDT by
The next iteration of the Apple Pencil could be available in black for the first time, according to leaker Mr. White who shared the tidbit on Twitter this morning. A mockup of an Apple Pencil in black We haven't heard rumors of a next-generation Apple Pencil and it's not clear when a new model might be released. Apple is rumored to be working on mini-LED versions of the iPad Pro, and it's...

Apple's Stock Price Hits a New All-Time High [Updated]

Friday June 5, 2020 7:06 am PDT by
Roughly four months after hitting an all-time high just before financial markets and economies faltered in the face of the current public health crisis, Apple's stock price has returned to those levels and has set a new all-time high today. Apple's previous intraday high of $327.85 was set on January 29, and that high-water mark was surpassed just a few minutes ago as it hit $328.00 before...

Code in iOS 13.5.5 Suggests Apple is Working on Services Bundle

Wednesday June 3, 2020 5:04 pm PDT by
Rumors have suggested Apple is working on a services bundle that will offer multiple Apple services like Apple TV+ and Apple Music for one flat monthly rate, and according to 9to5Mac, code found in iOS 13.5.5 seemingly confirms Apple's bundle plans. Files in iOS 13.5.5 reference a "bundle offer" and a "bundle subscription," and these files weren't in earlier versions of iOS. The files are...

Deals: Get the Limited Edition Mac Bundle With 11 MacOS Apps Including Parallels Desktop for $54

Wednesday June 3, 2020 6:46 am PDT by
At StackSocial this week you can get the Limited Edition Mac Bundle featuring Parallels Desktop for a low price of $54 with the promo code RUMORS10. This new bundle features 11 total apps for macOS, including Parallels Desktop, TextExpander, PDF Expert, and more. Note: MacRumors is an affiliate partner with StackSocial. When you click a link and make a purchase, we may receive a small payment, ...