Spotlight Optimization for macOS | Generated by AI

Home 2026.05

Done. Here’s what happened and what to expect:


What was done

Action Effect
touch ~/Projects/.metadata_never_index Spotlight will never crawl ~/Projects/ — that’s your node_modules, dev repos, etc.
touch ~/Library/Caches/.metadata_never_index Won’t index cache files
touch ~/Downloads/.metadata_never_index Won’t index Downloads
touch ~/Library/Application\ Support/.metadata_never_index Won’t index app data
sudo mdutil -E / Erased the existing index — forces clean rebuild
pkill -9 mdworker mds Killed the CPU storm immediately

What you’ll see

What still works

To undo (if you ever want search back in those folders):

rm ~/Projects/.metadata_never_index ~/Library/Caches/.metadata_never_index ~/Downloads/.metadata_never_index ~/Library/Application\ Support/.metadata_never_index
sudo mdutil -E /

Back Donate