Downloads & files

Spotlight not finding files on your Mac? Check, then rebuild the index

When Spotlight stops finding a file you know is there, the cause is usually one of three things: indexing isn't finished, the folder is excluded, or the index is damaged. You can tell which in a few minutes.

On this page
  1. Step 1: Check that indexing is on and finished
  2. Step 2: Ask the index directly
  3. Step 3: Check what Spotlight is allowed to show
  4. Step 4: Re-index one file or rebuild the index
  5. Step 5: Check that it worked
  6. How to undo, and the risks
  7. When to contact Apple
  8. Sources
  9. Quick answers
Tested on

macOS 27.0.1 on a MacBook Pro with Apple M1 Pro, 16 November 2026. None of the commands below needs an administrator password, and none of them changes anything unless the step says so.

Step 1: Check that indexing is on and finished

Open Terminal (Applications → Utilities) and run:

mdutil -s /

You want to see Indexing enabled. For an external drive, put its path in place of /, in quotes if the name has spaces, for example mdutil -s "/Volumes/My Drive".

If an external drive says Indexing disabled., check that it isn't in the Search Privacy list (Step 3). Turning indexing on for a volume from Terminal needs an administrator account (see man mdutil), and some volumes, such as network drives, can't be indexed at all.

After a major macOS update or after you migrate to a new Mac, Spotlight may rebuild its index. While that runs, results are incomplete and processes named mds_stores and mdworker_shared are busy in Activity Monitor. Leave the Mac on and plugged in; on a full disk this can take an hour or more.

Step 2: Ask the index directly

The Spotlight window shows only the categories you allow. Terminal asks the index itself, which tells you whether the file is indexed at all:

mdfind -name "budget"

Replace budget with part of the file name. To search only one folder, add -onlyin:

mdfind -onlyin ~/Documents "budget"
  • mdfind finds it, the Spotlight window doesn't: a category is turned off. Go to Step 3.
  • mdfind doesn't find it either: the folder is excluded or the index is missing that file. Go to Step 3, then Step 4.

Step 3: Check what Spotlight is allowed to show

Open System Settings → Spotlight.

  • Under Search results, make sure the categories you search for (Documents, Folders, PDF Documents and so on) are turned on.
  • Click Search Privacy… at the bottom. Anything in this list is never indexed. If the folder (or the whole drive) is there, select it and click the remove button (–).

Step 4: Re-index one file or rebuild the index

If only a handful of files are missing, you can ask Spotlight to read one file again:

mdimport ~/Documents/budget.xlsx

This only updates Spotlight's entry for that file; the file itself is not changed.

If many files are missing, rebuild the index for the whole disk or one folder. This is the method Apple recommends, and it needs no Terminal:

  1. In System Settings → Spotlight, click Search Privacy….
  2. Drag the disk (for example, Macintosh HD) or the folder into the list, or click the add button (+) and choose it.
  3. Wait a few seconds, select it in the list and click the remove button (–).
  4. Click Done. Spotlight now re-indexes that location.
Note

A full rebuild takes as long as the first indexing after an update. Search results are incomplete until it finishes. If macOS says you can't add a location, your account may not own it; Apple's article below explains how to fix the permissions.

Step 5: Check that it worked

Once mds_stores calms down in Activity Monitor, run the mdfind command from Step 2 again. The file should now appear in Terminal and in the Spotlight window. You can also confirm Spotlight has read a file's details:

mdls -name kMDItemContentType ~/Documents/budget.xlsx

A value such as "org.openxmlformats.spreadsheetml.sheet" means the file is in the index. (null) or an error means it most likely isn't indexed yet, or the folder is excluded in Search Privacy.

How to undo, and the risks

Nothing here deletes files. If you removed a folder from Search Privacy and want it hidden again, add it back. A rebuild only uses some CPU and battery for a while; it doesn't change your files.

Some apps (Mail, for example) rely on Spotlight for their own search. If you exclude the whole disk and forget to remove it again, search in those apps stops working too.

When to contact Apple

If mdutil -s / keeps saying indexing is disabled and you didn't turn it off, the Mac may be managed by your work or school, so ask your IT team first. If a rebuild finishes and Spotlight still finds nothing on an internal disk, contact Apple Support.

Sources

Quick answers

How long does Spotlight indexing take?

It depends on how many files you have. A few minutes for a small disk, an hour or more for a full one. The first indexing after a macOS update is the longest.

Is it safe to rebuild the Spotlight index?

Yes. Rebuilding only recreates the search database. Your files are not touched, and search results come back once indexing finishes.

Why does Spotlight not find files on my external drive?

Check mdutil -s with the drive's path. Drives in the Search Privacy list are not indexed, and some formats or network drives are indexed only partly or not at all.