Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

MacOS Sierra: Enable/Disable Spotlight Indexing

Mitch BartlettAugust 4, 2017 Comments (15)
Magnifying Glass

The Spotlight feature in MacOS Sierra allows you to search the items on your PC as well as the web. You can enable or disable Spotlight using these steps.

Option 1 – Selectively Choose Indexed Items

  1. From the Finder, select the Apple Menu then choose “System Preferences…“.
  2. Select “Spotlight“, located in the top row.
  3. Check the items you wish to allow Spotlight to index. Uncheck the items you don’t want Spotlight to index.

Option 2 – Completely Disable Spotlight Indexing

Note: You may have to disable System Integrity Protection to perform these steps.

  1. From the finder, select “Go” > “Utilities” > “Terminal“.
  2. Type one of the following commands, then press “Enter“:
    • Enable Indexing – sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
    • Disable Indexing – sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Categories: iPhone

Author Mitch Bartlett

Through my career that spans over 20 years I have become an expert in Microsoft Systems Administration, Android, and macOS. I started this site as a technical guide for myself and it has grown into what I hope is a useful knowledgebase for everyone.

You Might Also Like

  • How To Unlock Features in iOS 13

    MonaiPhone
  • Turning on Color Filters in iPhone Settings

    MonaiPhone
  • 10 Best AI Image Generator Apps for Android, iPhone, and iPad

    10 Best AI Image Generator Apps for Android, iPhone, and iPad

    Tamal DasAndroid

Comments

  1. EdPeMa says:
    June 29, 2022 at 8:27 pm

    J says
    October 12, 2018 at 1:34 pm
    “Deleted the hidden file .metadata_never_index in the root directory and then was able to turn spotlight on again with mdutil -i on /.’
    This did the trick

  2. William says:
    October 31, 2020 at 6:44 pm

    As soon as you reboot or turn on a Mac launch demons will kick in and fire up metadata indexing no matter what, unless you unload and delete these files, at which point I’m not sure macOS won’t recreate them.
    I still need to suppress Spotlight indexing after reboots or simple boots because it literally kills the system causing it to become frozen. I want it just to be able to find existing items. I want to run indexing manually in Terminal as I see fit.
    One recommendation was to create a special hidden file “.metadata_never_index_unless_rootfs” at the root of the file system (“/” folder), however it doesn’t turn off Spotlight mdworkers.
    Another solution based on the article is to create a demon at “/System/LaunchDemons/” and tell him to execute either the author’s defaults command or the dedicated CLI command (that is, “mdutil”).

  3. A says:
    September 28, 2020 at 9:30 pm

    no it didn’t help me. I’m looking for a way to turn off indexing for all external drives only. So the system never indexes any plugged in USB drive, Disk image, or external HD. A method that doesn’t require me to add each drive individually. Not sure if it’s even possible.

  4. Jeff Fisher says:
    March 16, 2020 at 4:48 pm

    Anyone know how to stop MDS? i’ve stoped indexing but it’s still cranking away

  5. Gerda Halvorsen says:
    February 19, 2020 at 3:48 pm

    If anyone is still hanging around on this thread, I have a question.
    I recently migrated my my applications and data to a new Mac, both running Sierra. For particular reasons I still use Entourage 2008, although I otherwise use the MS Office 2019 programs. Upon finishing the migration, my Entourage functions normally apart from it is no longer possible to use the search function. Nothing shows up.

    I have tried database rebuilds, import into a new identity, reinstallation of Entourage (which turned out to be impossible from my original disks in Sierra). The identity works fine and searches when acessed over a local network on a machine running Snow Leopard. I am at wit’s end and an about to give up and just rely on the spotlight searches (which aren’t very convenient for Entourage mails). If anyone has a brilliant idea I would love to hear it…

  6. Jz says:
    December 10, 2019 at 6:57 pm

    sudo mdutil -a -i off

    run this cli to disable Spotlight

  7. Uhane says:
    July 11, 2019 at 8:04 pm

    If anyone is still reading this thread… I too cannot activate the reindexing and receive the integrity message.. There is no .metadata_never_index that I can see in the root with hidden folders enabled… Where is this file??? when you go to this “root” should it be at the top level?? where is this file exactly? Might someone provide a file tree for me? some breadcrumbs?? of course I cannot do a search for it … because well .. s’why I’m here.. I have tried all the solutions available…

  8. Ohne says:
    March 15, 2019 at 2:52 am

    Thanks J.
    Your trick did it for me!

  9. Alexander Ewering says:
    March 2, 2019 at 6:03 am

    “Operation not permitted while System Integrity Protection is engaged”.

  10. Maritn Turner says:
    February 16, 2019 at 4:41 pm

    Being as I only want Spotlight on my Mac Pro SSD (but not all my external drives) I just set all but the Mac SSD off via System Preferences > Spotlight > Privacy and add the name of each volume you don’t want Spotlight to index. Your system will be heaps quieter and your disks actually able to sleep!

  11. Stephen Wick says:
    December 23, 2018 at 3:50 pm

    What do I do if I execute your ‘sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist’ command and it says, “/System/Library/LaunchDaemons/com.apple.metadata.mds.plist: Operation not permitted while System Integrity Protection is engaged”?

  12. J says:
    October 12, 2018 at 1:34 pm

    Hi,
    I had a similiar error I was unable to fix with the above and resolved it following these instructions posted by someone else:
    “Deleted the hidden file .metadata_never_index in the root directory and then was able to turn spotlight on again with mdutil -i on /.’

    Spotlight is reindexing my hard drive now, yay!

    I wonder how was this file originally created. Anyone?

  13. chase says:
    September 11, 2018 at 3:39 pm

    if i disable the integrity protection so i can disable indexing then after indexing is disabled can i enable the other protection again and have indexing stay disabled or will it enable it automatically ?

  14. Mitch Bartlett says:
    January 31, 2018 at 8:43 pm

    Yes

  15. MazterGee says:
    January 31, 2018 at 3:30 pm

    Will indexing stay disabled even after reboot?

Leave a Reply

Your email address will not be published. Required fields are marked *

  • no graphics signal on first boot

    No Graphics Signal on First Boot – How to Fix

  • system32 folder opens on startup

    System32 Folder Opens on Startup – How to Fix

  • browser keeps opening hp support

    Browser Keeps Opening HP Support Assistant Tabs 

  • camera not working in vmware

    Camera Not Working in VMware – How to Fix

  • browser screen goes black

    Browser Screen Goes Black Intermittently 

profile pic

The Experts Behind Technipages

My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2026 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Terms of Use
  • Privacy Policy

© 2026 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.