Spotlight indexing somehow disabled--how to re-enable?

I noticed that spotlight no longer "sees" Application files when I search. To remedy, I added and removed the Applications folder from the Spotlight Privacy pane. When that didn't work, I added and removed the entire hard drive with the same result.


The next steps were sudo mdutil -E / and then sudo mdutil -sa. I got the victory message after sudo mdutil -sa, but spotlight still ignores apps.


Next step?

Mac mini

Posted on Jul 1, 2023 9:50 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 19, 2023 9:07 AM

For those who are still struggling with this, here's the fix. You have to execute all four commands in this order (thanks to the unnamed person who posted this way back in 2011):


sudo mdutil -i off /
sudo rm -rf /.Spotlight*
sudo mdutil -i on /
sudo mdutil -E /

In order, these accomplish:

  1. turn indexing off
  2. delete Spotlight folder
  3. turn indexing on
  4. rebuild



20 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Spotlight indexing somehow disabled--how to re-enable?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.