TechJunkie is a BOX20 Media Company

Home Mobile Android Mac OS Sierra: How To Turn ON And OFF Spotlight Search

Mac OS Sierra: How To Turn ON And OFF Spotlight Search

Mac OS Sierra: How To Turn ON And OFF Spotlight Search

For those that have recently update to Mac OS Sierra, the best way to disable or enable Spotlight search is by using Terminal. A main reason Apple users want to disable Spotlight search is because of mdworker, the software running Spotlight. Below we’ll explain how you can enable or disable Spotlight on your Mac computer.

You can open up the Terminal (found in /Applications/Utilities/) and enter the following commands based on the need to either disable or reenable Spotlight indexing. This will effect indexing on all drives connected to the Mac.

 

Disable Spotlight

The primary method is using launchctl, this will require the administrative password:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Another approach is to use the older indexing method of “sudo mdutil -a -i off” which turns off indexing only, but more on that in a minute.

 

Reenable Spotlight

The guaranteed way to reenable Spotlight is to reload it into launchd using launchctl:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

 

Again, the alternate approach is the indexing related “sudo mdutil -a -i on” command, but that methodcan throw the “Spotlight server is disabled” error and not allow you to turn it back on. If you run into that problem, use the sudo launchctl load command instead to enable both indexing and Spotlight.

After Spotlight has fully reloaded launchd, mds agent will start reindexing to the filesystem. The time will be different for each used based on the number of changes that were made and new files since the last time MDS ran. You can verify that MDS is running through Activity Monitor or by pulling down the Spotlight menu to see an “Indexing Drive Name” progress bar.

Another option is to selectively disable Spotlight indexing of specific drives or folders by excluding them from the index, that is much easier to do and does not involve the command line at all, and instead you only need to drag & drop items into the Spotlight control panel.

 

 

How to Manage and Disable AutoPlay in Windows 10

Read Next 
David Williams

Aug 2, 2016

I am a true junkie for everything tech. My current arsenal includes an Apple TV, Amazon Fire TV Stick, iPhone Xs, Samsung Galaxy S9, Samsung Chromebook, iMac, and Dell XPS 13.

3076 Articles Published

More