Spotlight Search Mac OS

broken image


Spotlight Spotlight is a powerful search technology that makes it easy to locate files and content across the system. Using Spotlight, people can search for things using meaningful attributes like the intended audience for a document or the orientation of an image. Make your app's content searchable. Spotlight Search on your Mac lets you find apps, contacts, documents and many other things. I use it all the time as it makes easy to find whatever I need. This short article explains how you can troubleshoot If you're having problems using Spotlight. Here is what you can do to get Mac Spotlight search working again.

Is Spotlight broken? Can't find the app, document, or photo you want using Spotlight on your Mac? You can fix it in 5 seconds using Terminal.

If you're using Spotlight on Mac (Command + Spacebar) to quickly open an app, document, or photo—and it doesn't work—you may need to re-index Spotlight. Use this guide to fix Spotlight using Terminal on your Mac (plus a pro Spotlight tip). The solution works on any macOS version (tested on macOS High Sierra).

How to Fix Spotlight Search on macOS High Sierra with Terminal

Terminal is another way to control your Mac, and if you've never used it before, don't worry, this is a safe command to run (even if you have no idea what you're doing).

  1. Open the Terminal app from your 'Applications' folder

  2. Open the 'Utilities' folder and launch 'Terminal'

  3. Copy and paste this command and press enter:

    1. The -E command will 'Erase and rebuild index'—which is exactly what you want to do to fix the problem. / means to start at your hard drives root directory, which will make it re-index everything on your hard drive.

    2. Other guides might have you try to delete the Spotlight files, which I think is unnecessary, and a huge risk if you're new to the command line tools (i.e.: Terminal).

    Warning: Do not type any command with the rm keyword (remove) and -rf options (recursive force: i.e.: no confirmation . . . goodbye files!), unless you know what you're doing. You can accidentally delete your entire hard drive, as this command is not safe!

  4. Type your password, and let it run. Give your Mac 15-30 seconds to start re-indexing all your files, apps, and images.

  5. Try searching for 'Safari' with Spotlight (Command + Spacebar).

Note: You may have to wait longer your entire hard drive (and all the files) to be indexed, but apps should be indexed pretty quickly.

Symptoms of a Corrupt Spotlight on Mac

The telltale sign of a corrupt Spotlight is when you try to search for an app you use frequently using Spotlight, and it's not the first result (it might not even be in the list!).

Numerous times I'll try to open an app like TextMate, Evernote, or even Terminal, and the search results only show web pages, documents, and no apps.

Since I use my keyboard to launch apps quickly, this is a huge decrease in my productivity. The workaround is to use the Applications folder, or Launchpad to find the app I want to use.

Mac

Why Does Spotlight Search Break?

Spotlight will sometimes fail due to bugs in the macOS. On the initial launch of If you're experiencing this frequently, you should submit a bug to Apple at bugreport.apple.com.

Explain what happened, and they will follow up with you, and the bug will get fixed, rather than never getting fixed!

I submitted a bug #31646293, 'Spotlight loses index for apps that are updated from App Store,' on April 15th 2017, and Apple fixed it on July 11th 2017 (duplicate of bug #24109163).

I worked at Apple in the past, and they do read your bug reports, and they do fix issues when they know the problem exists.

Pro Spotlight Tip: Type Less

You can change the default search result if you start typing the first few letters, and then select the option you want with the arrow keys (or the mouse).

The next time you start typing 'Terminal' stop with the first three letters: 'Ter'. Try it:

  1. Open Spotlight from the top right corner icon (Command + Spacebar)
  2. Start typing 'Ter' (add more letters if you don't see Terminal in the list)
  3. Select Terminal

Now you've 're-trained' Spotlight for showing Terminal as the first result for 'Ter'.

References

Follow Me

Let me know if this was helpful in the comments below, or follow me on Twitter @PaulSolt

Mac Os Spotlight Search Shortcut

Before rebuilding the Spotlight index

  • Follow the steps for when Spotlight returns unexpected results.
  • If you're having difficulty finding items in the Mail app, follow the steps to rebuild Mailboxes in Mail.

Spotlight Search Mac Os Catalina

Rebuild the Spotlight index

Spotlight On Mac

  1. Choose Apple menu  > System Preferences, then click Spotlight.
  2. Click the Privacy tab.
  3. Drag the disk or folder that you want to index again to the list of locations that Spotlight is prevented from searching. Or click the add button (+) and select the disk or folder to add.

    You can add an item to the Privacy tab only if you have ownership permissions for that item. To learn about permissions, choose Help from the Finder menu bar, then search for 'permissions.'
  4. From the same list of locations, select the disk or folder that you just added. Then click the remove button (–) to remove it from the list.
  5. Quit System Preferences. Spotlight will reindex the contents of the disk or folder. This can take some time, depending on the amount of information being indexed.




broken image