Pressing Command + Space on a Mac only to see a persistent “Indexing…” progress bar that never finishes—accompanied by roaring cooling fans and high CPU usage from mds and mds_stores processes—indicates a corrupted Spotlight metadata index. This deadlock prevents file search, email lookups in Apple Mail, and application launching.
Force a Full Spotlight Index Rebuild via Terminal
Purging existing database tables and forcing macOS to construct a clean metadata database clears stuck parser loops:
- Open Terminal from Applications > Utilities.
- Execute the following command to erase and disable the current store:
sudo mdutil -E / - Next, ensure indexing is enabled on the primary boot volume:
sudo mdutil -i on / - Verify indexing status by running:
sudo mdutil -s /
Add and Remove Hard Drive in Spotlight Privacy Settings
If you prefer an effortless graphical method to trigger a complete metadata re-scan:
- Open System Settings > Siri & Spotlight.
- Scroll down to the bottom and click the Spotlight Privacy button.
- Click the plus (+) icon and add your entire Macintosh HD volume to the exclusion list.
- Wait 30 seconds, select Macintosh HD, and click the minus (–) button to remove the exclusion.
- Spotlight will immediately initiate a clean background re-index.
Identify and Exclude Corrupted Large Archives
Corrupted virtual machine disk images (.vmdk/.qcow2) or massive developer node_modules folders can stall the Spotlight content parser indefinitely. Add these specific directories to Spotlight Privacy exclusions.