Spotlight safari first result

Hello,

On every Spotlight search on macOs Monterey there's a Safari search link even if I have local files fully matching the keyword.


How can I disable this?


Thanks




MacBook Pro 13″, macOS 12.5

Posted on Sep 12, 2022 7:05 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 13, 2022 9:56 AM

Nice find, did you try this???


tristinDLC

·

2 mo. ago

Open up Terminal and copy and paste this in:

defaults write com.apple.spotlight orderedItems -array \
	'{"enabled" = 1;"name" = "APPLICATIONS";}' \
	'{"enabled" = 1;"name" = "SYSTEM_PREFS";}' \
	'{"enabled" = 1;"name" = "DIRECTORIES";}' \
	'{"enabled" = 1;"name" = "PDF";}' \
	'{"enabled" = 1;"name" = "FONTS";}' \
	'{"enabled" = 0;"name" = "DOCUMENTS";}' \
	'{"enabled" = 0;"name" = "MESSAGES";}' \
	'{"enabled" = 0;"name" = "CONTACT";}' \
	'{"enabled" = 0;"name" = "EVENT_TODO";}' \
	'{"enabled" = 0;"name" = "IMAGES";}' \
	'{"enabled" = 0;"name" = "BOOKMARKS";}' \
	'{"enabled" = 0;"name" = "MUSIC";}' \
	'{"enabled" = 0;"name" = "MOVIES";}' \
	'{"enabled" = 0;"name" = "PRESENTATIONS";}' \
	'{"enabled" = 0;"name" = "SPREADSHEETS";}' \
	'{"enabled" = 0;"name" = "SOURCE";}' \
	'{"enabled" = 0;"name" = "MENU_DEFINITION";}' \
	'{"enabled" = 0;"name" = "MENU_OTHER";}' \
	'{"enabled" = 0;"name" = "MENU_CONVERSION";}' \
	'{"enabled" = 0;"name" = "MENU_EXPRESSION";}' \
	'{"enabled" = 0;"name" = "MENU_WEBSEARCH";}' \
	'{"enabled" = 0;"name" = "MENU_SPOTLIGHT_SUGGESTIONS";}'    

You can rearrange that list as whatever is closer to the top takes a higher search priority for your search results. Any line that has "enabled" = 1 means that it is ON. Any line that has "enabled" = 0 means that it is OFF. So ensure that MENU_WEBSEARCH is set to 0.

Feel free to enable or disable any other section you don't wish Spotlight to look for results in.


File is located...


/Users/YourUserName/Library/Preferences/com.apple.Spotlight.plist

7 replies
Question marked as Top-ranking reply

Sep 13, 2022 9:56 AM in response to andreibkn

Nice find, did you try this???


tristinDLC

·

2 mo. ago

Open up Terminal and copy and paste this in:

defaults write com.apple.spotlight orderedItems -array \
	'{"enabled" = 1;"name" = "APPLICATIONS";}' \
	'{"enabled" = 1;"name" = "SYSTEM_PREFS";}' \
	'{"enabled" = 1;"name" = "DIRECTORIES";}' \
	'{"enabled" = 1;"name" = "PDF";}' \
	'{"enabled" = 1;"name" = "FONTS";}' \
	'{"enabled" = 0;"name" = "DOCUMENTS";}' \
	'{"enabled" = 0;"name" = "MESSAGES";}' \
	'{"enabled" = 0;"name" = "CONTACT";}' \
	'{"enabled" = 0;"name" = "EVENT_TODO";}' \
	'{"enabled" = 0;"name" = "IMAGES";}' \
	'{"enabled" = 0;"name" = "BOOKMARKS";}' \
	'{"enabled" = 0;"name" = "MUSIC";}' \
	'{"enabled" = 0;"name" = "MOVIES";}' \
	'{"enabled" = 0;"name" = "PRESENTATIONS";}' \
	'{"enabled" = 0;"name" = "SPREADSHEETS";}' \
	'{"enabled" = 0;"name" = "SOURCE";}' \
	'{"enabled" = 0;"name" = "MENU_DEFINITION";}' \
	'{"enabled" = 0;"name" = "MENU_OTHER";}' \
	'{"enabled" = 0;"name" = "MENU_CONVERSION";}' \
	'{"enabled" = 0;"name" = "MENU_EXPRESSION";}' \
	'{"enabled" = 0;"name" = "MENU_WEBSEARCH";}' \
	'{"enabled" = 0;"name" = "MENU_SPOTLIGHT_SUGGESTIONS";}'    

You can rearrange that list as whatever is closer to the top takes a higher search priority for your search results. Any line that has "enabled" = 1 means that it is ON. Any line that has "enabled" = 0 means that it is OFF. So ensure that MENU_WEBSEARCH is set to 0.

Feel free to enable or disable any other section you don't wish Spotlight to look for results in.


File is located...


/Users/YourUserName/Library/Preferences/com.apple.Spotlight.plist

Sep 15, 2022 12:08 PM in response to andreibkn

Spotlight understands certain query keywords that help narrow your search. If you typed the following, your top choice would be your music, and not a Safari link:


kind:music name:fragil


As an example of this, I have Leslie Feist's song 1 2 3 4 on my Mac as a .mp3. The following two different Spotlight queries show it as a top search result:


kind:music name:1 2 3 4
name:"1 2 3 4"



You will never see me use some hack posted on the Internet to game Spotlight, and one consequence might be destroying the Spotlight plist which will really cause a bad day.


Even something as simple as the following gets the music as the first result:


author:feist



Sep 15, 2022 12:23 PM in response to VikingOSX

That's helpful but it doesn't fix the underlying problem - and I don't think something could.


However, similar to filtering as you suggested, I also got the idea of:

  1. Appending a suffix to every Spotlight search: -web
  2. Adding a text shortcut that replaces specific characters to -web
  3. Stroking the shortcut keys after every search


And it's quite acceptable.


Thanks

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 safari first result

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