MacBook Folder Search Not Working? Fix It Now
In this article
If your MacBook's folder search is not working—no results, spinning beach ball, or missing files—the quickest fix is often to re-index the folder in Spotlight. Open System Settings > Spotlight > Search Privacy, drag the folder in, wait a few seconds, then remove it. This forces macOS to rebuild its index for that folder. Below is the full step-by-step process, plus troubleshooting for stubborn cases.
What You'll Need
- Your MacBook (any model running macOS 10.15 or later; steps are similar for older versions)
- Administrator access (you'll need to enter your password for some steps)
- Patience: re-indexing can take 15–60 minutes depending on folder size
Step-by-Step
- Check the basics first. Make sure Spotlight is enabled: go to System Settings > Spotlight (or System Preferences > Spotlight on older macOS) and confirm that “Search results” includes “Folders” and “Files”. Also verify that the folder you're searching is not excluded in the “Search Privacy” tab.
- Force re-index the specific folder. Go to System Settings > Spotlight > Search Privacy. Click the + button, navigate to the folder that isn't searching correctly, and add it to the list. Wait about 10 seconds, then select the folder in the list and click the – button to remove it. This triggers a re-index of that folder.
- Rebuild the entire Spotlight index (if the above fails). Open Terminal (found in Applications > Utilities). Type the following command and press Enter:
sudo mdutil -E /
Enter your admin password when prompted. This erases and rebuilds the index for the entire startup drive. It can take a while, but it's the most thorough fix. - Check if the folder is actually indexed. In Terminal, run:
mdls -name kMDItemFSName /path/to/your/folder
Replace/path/to/your/folderwith the actual path (e.g.,~/Documents). If you see an error like “kMDItemFSName = (null)”, the folder is not indexed. If you see a value, indexing is working but search might be failing for another reason. - Verify that the folder is not hidden or excluded. In Finder, press Command+Shift+. (period) to show hidden files. If the folder appears with a dimmed name, it might be hidden. Also check the folder's Get Info (right-click > Get Info) and make sure “Hidden” is unchecked (though this is rare).
- Reset the Finder search bar. If you're using Finder's search (not Spotlight), click on the search bar, then click the “+” button on the right to add a search condition. Set it to “Name contains” and type a known file name. If that works, the issue is with your previous search criteria, not the folder.
- Restart your MacBook. Sometimes a simple restart clears temporary glitches. After restarting, test search again before trying more drastic measures.
- Update macOS. Go to System Settings > General > Software Update and install any pending updates. Apple often fixes Spotlight bugs in updates.
Common Mistakes
- Adding the wrong folder to Privacy. If you accidentally add your entire Home folder or the whole drive to the Search Privacy list, Spotlight will ignore it completely. Double-check that only the specific problem folder is listed (and then removed).
- Not waiting long enough. Re-indexing can take a long time, especially if the folder has thousands of files. Don't expect immediate results; wait at least 30 minutes before assuming it failed.
- Using the wrong search scope. In Finder, if you search “This Mac” instead of “Current Folder”, you might miss files because of permissions or indexing issues. Always select the folder in the sidebar first, then search.
- Forgetting to check if the folder is on an external drive. Spotlight indexing for external drives can be disabled by default. If your folder is on an external drive, go to System Settings > Spotlight > Search Privacy and ensure the drive is not listed there. Also, in Finder, the drive must be connected and mounted.
Tips
- Use Spotlight's advanced syntax. For example, type
kind:folderto search only folders, orname:reportto search by filename. This can help narrow down why a search isn't returning results. - Check if the folder is on iCloud Drive. If your folder is synced via iCloud, files might be “optimized” (removed locally) and not searchable until downloaded. Right-click the folder in Finder and select “Download Now” to force local availability.
- Create a smart folder. Instead of relying on Spotlight, you can create a Smart Folder in Finder that automatically shows files from a specific folder matching criteria. This works even if indexing is broken.
- Keep your MacBook plugged in during re-indexing. Re-indexing can drain battery quickly, and a sleep during the process can interrupt it.
Troubleshooting
If the folder still doesn't search after re-indexing:
- Check permissions. In Finder, right-click the folder, select “Get Info”, and expand “Sharing & Permissions”. Ensure your username has “Read & Write” access. If not, click the lock icon, add yourself, and set to “Read & Write”.
- Try a different user account. Create a temporary new user in System Settings > Users & Groups, log in as that user, and try searching the folder. If it works, the issue is with your main user's preferences or Spotlight cache. You can then delete the problematic Spotlight preferences files in your home folder (they'll be rebuilt automatically).
- Boot into Safe Mode. Restart your MacBook and hold the Shift key immediately after the startup chime (on Apple Silicon, press and hold the power button until “Loading startup options” appears, then select your disk and hold Shift). Safe Mode forces a directory check and clears some caches. After booting, try search again, then restart normally.
- Check for corrupted files. Run First Aid in Disk Utility (Applications > Utilities > Disk Utility > First Aid). This can fix filesystem errors that might interfere with indexing.
- If nothing works, reset the NVRAM (on Intel Macs only). Shut down, then power on and immediately press and hold Option+Command+P+R for about 20 seconds. On Apple Silicon, this is not needed; just restart.
Frequently Asked Questions
Why does my folder search return no results at all?
Most likely the folder is not indexed by Spotlight. This can happen if it was added to the Search Privacy list, if it's on an external drive that's not indexed, or if the index is corrupted. Follow the re-indexing steps above.
Can I search inside a specific folder without Spotlight?
Yes. Open the folder in Finder, then use the search bar in the top-right corner. Make sure “Current Folder” is selected (it appears below the search bar). You can also press Command+F to open a detailed search window.
Will re-indexing delete my files?
No. Re-indexing only rebuilds the metadata database that Spotlight uses to find files. Your actual files are untouched.
How long does re-indexing take?
It depends on the number of files and the speed of your drive. A typical folder with a few thousand files might take 10–20 minutes; an entire drive can take over an hour. You can check progress by looking at the Spotlight menu bar icon—it may show a progress bar or a dot.
Does this work for macOS Sonoma or Sequoia?
Yes, the steps are essentially the same in recent macOS versions. The only difference is that System Settings replaced System Preferences, but the Spotlight pane is similar.
Why does Spotlight find files but not folders?
This can happen if the folder's name is too generic or if it's a system folder. Try searching with a more specific term, or use kind:folder in Spotlight to filter results to folders only.