There are lots of processes that run frequently in macOS that most of us know nothing about. Most of the time, we don’t need to. They just run in the background and do their thing. When things go wrong, however, it pays to have a little understanding of what they do and why. One of those processes is corespotlightd. While Spotlight is indexing, it can use a lot of resources and slow down your Mac. In this article, we’ll show you how to fix corespotlightd high CPU usage on your Mac.

In short: corespotlightd works for Spotlight, the search built into macOS. After a macOS update or upgrade, or when a lot of new data arrives, Spotlight updates its index, and Apple says indexing can take hours or even days; it finishes sooner when your Mac isn’t in use and is connected to power. If the high CPU use doesn’t settle, work through the fixes below, starting with the first one.

What is corespotlightd on Mac?

corespotlightd is a background process that macOS runs for Spotlight. Spotlight keeps a private index on your Mac that covers files, folders, and apps, plus content like documents, email, text messages, contacts, photos, and notes, and apps can add their own content to it through Apple’s Core Spotlight framework. Scanning and indexing files as they change is the job of two other Spotlight processes, mds and mdworker.

Activity Monitor CPU tab with corespotlightd found through the search field

Why does corespotlightd have high CPU usage?

There are a number of reasons why corespotlightd may have high CPU usage on your Mac:

  • Spotlight is updating its index after a macOS update or upgrade, or after new data arrives, such as new email or messages.
  • Its existing index is corrupt, and it is struggling to update it.
  • There are corrupt cache files on your Mac.
  • You have a third-party app that has a large database.
  • You have one or more external drives connected, and Spotlight is trying to index those.
  • There’s a bug in macOS.
  • macOS is throttling CPU speed to prevent your Mac from overheating.

How to fix corespotlightd high CPU usage on Mac

1. Quit the process

The first step is to check whether Spotlight high CPU usage is a one-off and quit the process. No need to worry; the process will relaunch automatically.

  1. Go to Applications > Utilities and launch Activity Monitor.
  2. Search for corespotlightd
  3. When you find it, select it and click ‘x’ in the toolbar, then click Quit.
Activity Monitor dialog asking whether to end the selected process, with Quit, Force Quit and Cancel buttons

2. Restart your Mac

If, when corespotlightd restarts, it has high CPU usage again, restart your Mac. This will clear some cache and temporary files and run checks on your startup disk. So, go to the main Apple menu and choose Restart. Make sure not to reopen windows when logging back in.

Restart confirmation with the Reopen windows when logging in checkbox turned off

3. Rebuild Spotlight’s index

The next step is to force Spotlight to recreate its index:

  1. Click the Apple menu and choose System Settings > Spotlight > Search Privacy.
  2. Drag Macintosh HD into the window, or click ‘+’ and select it. You will be asked if you’re sure you want to exclude Macintosh HD. Click OK.
  3. Wait a few seconds, then select Macintosh HD in the same list and click ‘-’ to remove it.
  4. Then click Done and quit System Settings. Spotlight will rebuild its index. This uses a lot of resources, and your Mac may slow down until it finishes.
Spotlight Search Privacy window listing the locations Spotlight is prevented from searching, with add and remove buttons
Tip: Reindex Spotlight easily

Did you know there is another way to reindex Spotlight as well as run other maintenance tasks like thinning out Time Machine snapshots and flushing DNS cache? CleanMyMac’s Performance feature scans your Mac with one click and, when it’s finished, it may suggest tasks to run. To reindex Spotlight, click View All Tasks, select Maintenance Tasks, choose Reindex Spotlight, and click Run. Get your free CleanMyMac trial.

CleanMyMac Performance Manager with Reindex Spotlight selected among the Maintenance Tasks and a Run button

4. Check your external disks

If corespotlightd still has high CPU usage after you rebuild the database and you have external disks connected to your Mac, it’s a good idea to prevent Spotlight from indexing them to check whether something on one of the disks is causing the problem:

  1. Go to System Settings > Spotlight > Search Privacy and drag the external disk(s) onto the window.
  2. Quit System Settings.

If that fixes the problem, you can remove the disks, if there is more than one, from Search Privacy one at a time until you find the one that is causing the problem.

5. Check Spotlight cache

Cache buildup can also cause the problem, so it’s a good idea to get rid of it:

  1. Click the Finder icon on the Dock and choose Go > Go to Folder.
  2. Paste this file path into the text box: ~/Library/Caches/com.apple.corespotlightd/
  3. If the folder exists, drag its contents to the Trash and empty it.
Finder Go to Folder box with the path to the corespotlightd cache folder

6. Remove problem files

Spotlight relies on file metadata to understand what files contain. If there is a problem with that metadata, Spotlight will get into a cycle of trying to process it, failing, and then trying again repeatedly. To check metadata, paste this path into Go to Folder: ~/Library/Metadata/CoreSpotlight/

Finder showing the contents of the CoreSpotlight folder in Library > Metadata

Look for any files that are unusually large compared to the others or have very old timestamps and drag them to the Trash.

7. Disable the indexing of third-party apps with large databases

Some apps have their own databases that can become corrupt or just too large for Spotlight to cope with. These apps are typically note-taking tools like Evernote, OneNote, and any other apps that store lots of different content.

To exclude those, find the app’s folder in ~/Library/Application Support (it’s usually named after the app or its developer) and drag that folder into the Search Privacy window in System Settings > Spotlight.

How to keep your Mac running smoothly all the time

The maintenance tasks in the Performance feature we mentioned above aren’t the only tools CleanMyMac has to help you keep your Mac running smoothly. Its Smart Care feature looks for junk files and clutter, malware, applications that need to be updated, and maintenance tasks that need to be run.

Here’s how to use it:

  1. Open CleanMyMac — get your free trial here.
  2. Click Smart Care > Scan, then click Run.
CleanMyMac Smart Care results with Cleanup, Protection, Performance, Applications and My Clutter tiles and a Run button

corespotlightd is a background process that helps Spotlight keep its index up to date, so Spotlight can find what you search for. Usually, the only sign that Spotlight is indexing is a progress indicator at the top of the Spotlight window when you press Command-Space bar, but if something goes wrong, you could experience corespotlightd having high CPU usage. If that happens, follow the steps above to fix it.