sodcalculator

10 Tech How-To

How to Disable or Enable Spotlight in Mac Os X Yosemite Mavericks Mountain Lion

Guide 10-28233 · Updated · Step by step

Spotlight is the built-in search feature in Mac OS X that indexes your files, apps, and emails for instant results. While it’s generally useful, you might want to disable it to free up system resources, prevent indexing of sensitive data, or because you prefer another search tool. This guide covers how to completely turn off Spotlight (including the menu bar icon and keyboard shortcut) or disable it only for specific folders or volumes, on OS X Yosemite, Mavericks, and Mountain Lion.

What You’ll Need

  • An administrator account on your Mac (you’ll need to enter your password).
  • Terminal app (found in /Applications/Utilities/).
  • About 10 minutes of time; disabling Spotlight requires a few restarts of the indexing process.

Step-by-Step

Method 1: Disable Spotlight Entirely (All Versions)

  1. Open Terminal (go to Applications > Utilities > Terminal).
  2. Type the following command and press Enter:
    sudo mdutil -a -i off
    You’ll be prompted for your administrator password. This turns off indexing on all connected volumes.
  3. To also hide the Spotlight menu bar icon (the magnifying glass) and disable the keyboard shortcut, you need to change a system setting. In Yosemite and later, go to System Preferences > Spotlight and uncheck Show Spotlight in menu bar. In Mavericks and Mountain Lion, this option is under System Preferences > Spotlight as well (the checkbox is labeled Show Search Results – unchecking it removes the menu bar icon, but the shortcut still works). To fully disable the shortcut in all versions, you can use a third-party tool, but the simplest built-in method is to skip this step; the search field will simply not return results.
  4. To stop the Spotlight process from running at all, you can also disable the indexing daemon. Type:
    sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
    Press Enter. This prevents Spotlight from launching at startup.
  5. Restart your Mac to ensure all changes take effect.

Method 2: Re-enable Spotlight

  1. Open Terminal again.
  2. Re-enable indexing on all volumes:
    sudo mdutil -a -i on
  3. Reload the Spotlight daemon:
    sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
  4. If you unchecked the menu bar icon, go back to System Preferences > Spotlight and re-check Show Spotlight in menu bar.
  5. Restart your Mac. Spotlight will re-index your drive, which may take a while.

Method 3: Disable Spotlight for Specific Folders or Volumes

  1. Open System Preferences > Spotlight (or Spotlight in older versions).
  2. Click the Privacy tab.
  3. Click the + button, then select the folder or disk you don’t want indexed. You can also drag folders into the list.
  4. Close System Preferences. Spotlight will stop indexing those locations immediately.

Common Mistakes

  • Forgetting to disable the daemon: Running mdutil -a -i off alone stops indexing, but the Spotlight process still runs in the background. To fully disable it, you must also unload the launch daemon.
  • Not restarting: Some changes won’t take effect until you restart your Mac, especially the daemon unload.
  • Using the wrong command for re-enabling: If you disabled the daemon, you must reload it before turning indexing back on, or Spotlight will remain off.
  • Assuming the menu bar icon disappears automatically: The icon is controlled separately from indexing. You must manually hide it in System Preferences.

Tips

  • Before disabling, consider if you really need to: Spotlight is a powerful tool. Instead of turning it off entirely, you can simply exclude sensitive folders (like your Documents or Downloads) via the Privacy tab.
  • Use the Privacy tab for temporary exclusions: It’s easier to add a folder to the Privacy list than to re-enable indexing later.
  • If you only want to change the keyboard shortcut, you can do that in System Preferences > Keyboard > Shortcuts > Spotlight. You don’t need to disable Spotlight entirely.
  • After re-enabling, be patient: Spotlight may take hours to re-index a large hard drive. You can check progress by typing a query – results will appear gradually.

Troubleshooting

  • Spotlight still shows results after disabling: Make sure you ran both mdutil -a -i off and the launchctl unload command. Also, check that the Privacy list doesn’t contain any exclusions that might be overriding your settings.
  • Can’t re-enable Spotlight: If the mdutil -a -i on command fails, try running sudo mdutil -E / to erase the index and force a rebuild. If that doesn’t work, restart your Mac and try again.
  • Spotlight menu bar icon is missing but you want it back: Go to System Preferences > Spotlight and check the box for “Show Spotlight in menu bar.” If it’s grayed out, make sure you haven’t unloaded the daemon – reload it first.
  • Indexing never finishes after re-enabling: This can happen if you have a large drive or many files. Leave your Mac plugged in and awake for a few hours. You can check indexing status by typing mdutil -s / in Terminal – it will show “Indexing enabled” and the last index date.

Frequently Asked Questions

Will disabling Spotlight slow down my Mac?

No, it will actually free up CPU and disk I/O that indexing uses. However, you lose the ability to search files instantly.

Can I disable Spotlight only for a specific external drive?

Yes, use the Privacy tab in System Preferences and add the external drive to the list. It will not be indexed.

Does disabling Spotlight affect Siri or other search features?

In Yosemite and earlier, Siri doesn’t exist. In later versions, disabling Spotlight may affect Siri’s ability to search your files, but Siri itself still works.

How do I know if Spotlight is actually disabled?

Type something in the Spotlight search field (press Cmd+Space). If no results appear, indexing is off. You can also run mdutil -s / in Terminal – it will show “Indexing disabled.”

Will my files be deleted if I disable Spotlight?

No, Spotlight only indexes metadata. Disabling it does not affect your files in any way.

Can I turn Spotlight back on without using Terminal?

No, you must use Terminal to re-enable indexing. The System Preferences only controls the menu bar icon and privacy exclusions, not the core indexing service.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →