How to Fix Mac Spotlight Indexing Stuck or Taking Forever

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:

  1. Open Terminal from Applications > Utilities.
  2. Execute the following command to erase and disable the current store:
    sudo mdutil -E /
  3. Next, ensure indexing is enabled on the primary boot volume:
    sudo mdutil -i on /
  4. 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:

  1. Open System Settings > Siri & Spotlight.
  2. Scroll down to the bottom and click the Spotlight Privacy button.
  3. Click the plus (+) icon and add your entire Macintosh HD volume to the exclusion list.
  4. Wait 30 seconds, select Macintosh HD, and click the minus (–) button to remove the exclusion.
  5. 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.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.