Is it possible to customize the default order of Spotlight’s results


One day when trying to open with Spotlight, I accidentally told it to open Xcode Server Now every time I type in Xcode into Spotlight, the first result it gives me is Xcode Server Builder instead of Xcode itself due to Spotlight guessing that it's more likely that I'll want the former. I have typing Command + Space Xcode return into muscle memory for launching Xcode so I really want to reverse this behavior.

Is there any way I can manually reset the order in which Spotlight returns matches so that it reverts back to its original default for searches?

Best Answer

I face the same problem. I overcame it by excluding Xcode Server from Spotlight search results.

Locate Xcode Server by navigating to /Applications/ directory. Now, go to System Preferences → Spotlight → Privacy tab. Drag and drop Xcode Server from the Finder window into the list under Privacy tab.

enter image description here

Now, the Xcode Server will no longer appear in the Spotlight search results. This should take care of accidentally launching it instead of

In case you still need to launch Xcode Server on an infrequent basis, you can either drag and drop the app into Dock to create a shortcut, or press and hold Command + Option and drag the app icon to any convenient location to create a shortcut link to the app.