Mac Tip: Force Spotlight to Reindex

So, I’ve recently been having trouble launching apps from Spotlight in Mac OSX Mountain Lion, for example: ├é┬ápreviously hitting cmd+space and typing “iM” would be enough to highlight iMovie but recently, instead Spotlight would show all sorts of directories used by iMovie to store project data. Most annoying (especially since it was also affecting other apps like iPhoto, iTunes and many more!).

After doing some research I discovered the Terminal command below that forces spotlight to scrap it’s index and create a new one. Here’s what you do:

  1. Launch from /Applications/Utilities/
  2. When presented with the bash prompt, type “sudo mdutil -E /” (without quotes)
  3. Enter your admin password (if prompted).
  4. You should see a little dot pulsating in the center of the spotlight icon.
  5. Sit back and wait while spotlight reindexes your entire computer (this can take a while so go and play a round of golf or something)

That’s all there is too it – launch an app, paste a command and voila! Spotlight should shortly be restored to it’s former glory.

(PS… this tip should also work in OSX Lion and OSX Leopard / Snow Leopard too!)

Posted on
by Andy

About Andy

Andy Warburton is a web designer and developer from the UK currently living in Amsterdam, The Netherlands. When he's not building totally awesome WordPress themes or stuffing his face with Sushi, Andy can be found hanging out with his wonderful wife and child. You should totally follow me on Twitter

Leave a Comment

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