Spotlight problems
There is a list on your Mac of folders Spotlight has been told to ignore. Most people have never opened it. It is the first thing to check when a whole folder has gone missing from search.
System Settings → Siri & Spotlight → scroll to the bottom → Spotlight Privacy…
On older macOS versions: System Preferences → Spotlight → Privacy tab.
Anything listed there is excluded from results entirely. Remove an entry by selecting it and clicking the minus button.
directories out of your results.
made sense years ago.
Higher up the same settings pane is a list of result categories — Applications, Documents, Folders, Mail & Messages, and so on. Unchecking one removes that entire class of result from Spotlight. If applications stopped appearing but documents still do, this is why, and no amount of index rebuilding will fix it.
The exclusion list is stored in a system plist that is not comfortably readable, but you can confirm whether a specific path is being indexed:
mdutil -s /Volumes/YourDrive
and test whether a known file is in the index at all:
mdfind -name "yourfile.pdf"
If mdfind returns nothing for a file you can see in Finder, it was never indexed — and an exclusion is the most likely reason.
It triggers indexing of that folder, which then happens in the background. Give it a few minutes on a large folder.
Yes — find and mdfind -onlyin still work on excluded paths, and third-party indexes are unaffected by Spotlight's list.
Everywhere keeps track of every file on your Mac — including the folders Spotlight hides and drives you have unplugged. Free for a day, then $19 once.
Download for Mac