Sweepfor Mac

Speed up your Mac

Mac Slow When Spotlight Is Searching? Here's the Fix

Spotlight slowing your Mac while indexing? Here's how to diagnose what's stuck and fix Spotlight without losing search functionality.

7 min read

You hit Cmd+Space to find a file. Nothing happens for two seconds. Then results trickle in slowly, in the wrong order. Activity Monitor shows mds_stores at 300% CPU, the fans are loud, and your battery is draining like you left it on a hot stove. Spotlight is broken — or at least very confused — and it’s dragging the rest of the Mac with it.

Spotlight indexing is supposed to be invisible background work. When it’s not, the symptoms are unmistakable: hot Mac, fast battery drain, sluggish everything. Here’s how to fix it.

What Spotlight indexing actually does

Spotlight maintains an index of:

  • File names and paths
  • File contents (for text-readable formats)
  • Image metadata and (in newer versions) visual content via ML
  • Email message contents
  • Calendar events
  • Contacts
  • App contents

Two daemons handle this:

  • mds — the metadata server, the brain
  • mds_stores — the actual indexing worker

When everything’s healthy, they sit at near-zero CPU until something changes (new file, app update). When they’re broken, they grind for hours or days.

There’s a faster waySweep diagnoses what’s eating your performance and clears it in seconds. Try Sweep free →

How to tell if Spotlight is actually the problem

Open Activity Monitor → CPU. Sort by % CPU. Look for:

  • mds — should be < 5% usually
  • mds_stores — varies, but if sustained >100% for hours, something’s wrong
  • mdworker or mdworker_shared — workers, briefly active is normal

If mds_stores has been pegged for hours and your Mac feels slow, the index is corrupted, the index is stuck on a problem file, or something on disk just changed massively.

Why Spotlight gets stuck

Common causes:

  • Recent macOS update (initial reindex after upgrade)
  • Recent restore from Time Machine (full reindex)
  • A folder with millions of files (a node_modules, a large Photos library)
  • A corrupted file Spotlight can’t parse (loops trying)
  • An external drive that mounts and unmounts repeatedly
  • A network share that’s flaky
  • A .nosync folder that’s not properly excluded

Fix 1: Wait it out (sometimes)

If you just installed a macOS update or imported a huge amount of data, Spotlight is doing legitimate work. The first index can take hours. Plug your Mac in, leave it overnight, see if it finishes.

The Spotlight menu often shows a progress bar during a major reindex. Click the magnifying glass — if you see “Indexing…” with progress, that’s normal. Wait for it to disappear.

If you’ve been waiting more than 24 hours and progress isn’t visibly moving, something’s stuck and you need a manual fix.

Fix 2: Force a clean reindex

The nuclear option that fixes 90% of stuck Spotlights:

  1. System Settings → Spotlight → Search Privacy
  2. Click + and add your entire startup disk (Macintosh HD)
  3. Wait 30-60 seconds (Spotlight will clear its index for everything in the privacy list)
  4. Remove Macintosh HD from the privacy list

Spotlight starts a fresh index from scratch. This can take 30 minutes to several hours depending on disk size. You won’t have search during the rebuild, but at least it’s making progress instead of stuck.

After the rebuild, search works normally. The slowdown ends.

Tip: Don't trigger this rebuild before a meeting. Indexing is itself disruptive while it runs.

Fix 3: Find and exclude the problem folder

Sometimes a single folder is breaking Spotlight. Common offenders:

  • node_modules (huge, regenerates often)
  • A Sketch or Photoshop scratch folder
  • A folder with thousands of EPS or AI files
  • A photo backup with corrupted thumbnails
  • A NAS share that’s slow to respond

To exclude:

  1. System Settings → Spotlight → Search Privacy
  2. Click + and add the suspect folder
  3. Check Activity Monitor — does mds_stores calm down?

If yes, leave the folder excluded. Spotlight searches won’t find files in there, but you can still find them through Finder navigation.

Fix 4: Restart the metadata server

Sometimes the daemon is just stuck. Killing it forces a relaunch:

sudo killall mds

The system relaunches mds automatically. If indexing was stuck on a single file, this often unsticks it.

For a more thorough reset:

sudo mdutil -E /

This erases the index and rebuilds. Same as the privacy list trick but via Terminal.

Fix 5: Check for external drives causing trouble

If you have a flaky external drive (slow network share, almost-failed external HDD, NAS that goes to sleep), Spotlight tries to index it every time it connects. If those connections are unstable, indexing gets confused.

Workarounds:

  • Add unstable drives to Spotlight Privacy
  • Eject network shares you don’t actively need
  • Replace failing drives

You can disable Spotlight indexing for a specific drive without removing it from the system entirely. Just add it to the privacy list.

Free up RAM in one clickSweep frees inactive memory and pauses the processes hogging your CPU. Get Sweep free →

Fix 6: Manage Mail’s interaction with Spotlight

Mail and Spotlight are closely linked. If Mail’s database is corrupted, Spotlight can spin trying to index emails it can’t parse.

To diagnose:

mdimport -L

This lists every Spotlight importer. Look for Mail.mdimporter. If it’s listed and Mail-related processes are also high in Activity Monitor, the problem is at the intersection.

To fix Mail’s index:

  1. Quit Mail
  2. Move ~/Library/Mail/V10/MailData/Envelope Index* files to Desktop
  3. Reopen Mail (rebuilds envelope index)
  4. Spotlight will reindex Mail data based on the new envelope index

This is in our Mail-specific guide too because it fixes both apps’ issues at once.

Fix 7: Check disk space

Spotlight needs working room. On a Mac with under 5% free disk space, indexing struggles because there’s no room to write the new index alongside the old one. Symptoms:

  • mds_stores runs forever without finishing
  • Spotlight searches return nothing (because there’s no index to search)
  • General system slowness

Free up space — Sweep is one option, manual cleanup is another. Get above 15% free if you can. Spotlight will then complete its index and stop hammering the disk.

Fix 8: Watch out for Photos and mediaanalysisd

Photos analysis is technically separate from Spotlight, but they share resources and stepping. If mediaanalysisd and photoanalysisd are also running heavy alongside Spotlight, your Mac is doing two simultaneous reindexes.

Both will eventually finish. Plug in to power and let them run overnight. Activity Monitor in the morning should show all of them at zero — that means analysis completed.

Fix 9: Reduce what Spotlight indexes

Open System Settings → Spotlight → Search Results. Untick categories you don’t actually use:

  • Bookmarks & History (if you don’t search those)
  • Mail Messages (huge time saver if your mail is large)
  • Movies (if you don’t have a big media library)
  • Music (if you use a separate app)
  • Other (catch-all, includes documents)

Each unticked category reduces what Spotlight has to keep current. Search becomes a bit less useful but performance improves.

Fix 10: Stop fighting Spotlight if you can avoid it

If you mostly use Spotlight to launch apps (not to search files), there are alternatives that don’t require a full file index:

  • Raycast (free, fast, lots of features)
  • Alfred (free, configurable)
  • LaunchBar (paid, classic)

These have their own indexes that are much smaller. You can keep Spotlight running but reduce its scope, and use one of these for daily app launching. Best of both worlds.

The cleanup angle: why a clean Mac indexes faster

Spotlight indexing speed correlates directly with how much there is to index. A Mac with 200 GB of files indexes faster than a Mac with 1 TB. A Mac with clean caches indexes faster than one with bloated caches that Spotlight has to scan.

Cleanup wins specific to Spotlight performance:

  • Cache files in ~/Library/Caches/ — Spotlight skips most of these but still has to walk the directory
  • Old log files — same
  • Language files for languages you don’t speak — pure waste
  • Leftover support files from apps you uninstalled — Spotlight doesn’t know they’re orphaned, so it tries to index them

Sweep finds all of this in one scan and shows you what’s about to be removed before anything happens. After a thorough cleanup, the next Spotlight reindex is dramatically faster. Notarized by Apple, free download.

Don’t restart — cleanSweep clears the buildup that’s actually slowing your Mac. No reboot needed. Free for macOS →

When Spotlight is fine but Cmd+Space is slow

Sometimes the search itself is fast but the menu is slow to appear. That’s a Spotlight UI issue, not an indexing issue. The fixes are different:

  • Restart corespotlightd and searchd
  • Check whether Siri Suggestions in Spotlight are turned on (they slow the UI)
  • Disable Spotlight categories you don’t use (the search UI does less work)

Cmd+Space should appear instantly. If it doesn’t, the UI is fighting something.

A reasonable end-state

For most Macs, healthy Spotlight looks like:

  • mds/mds_stores near 0% at idle
  • Search results appearing instantly when you type
  • Cmd+Space pops up with no delay
  • No visible slowdown when you save or modify files

If your Mac doesn’t match this, one of the fixes above usually gets you there. The privacy-list reindex trick is the heaviest hammer and works for most stuck-Spotlight cases.

← Back to all guides