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.

Related Roundup: macOS Mojave

Discuss this article in our forums