在Mac上使用Spotlight Search时是否经常遇到问题?也许它无法找到特定的应用程序和文档。或者它可能会崩溃或无法显示。许多原因(例如有缺陷的系统软件、错误配置的设置和损坏的搜索索引)通常会导致Spotlight Search在(Spotlight Search)Mac上无法运行。
本故障排除指南将提出修复建议,以帮助您解决Mac上与(Mac)Spotlight相关的问题。这些包括重新启动相关服务、仔细检查您的搜索设置、重建Spotlight索引等等。最好按照它们出现的顺序完成它们,同时跳过任何不适用的。
1.重启(Restart)Spotlight相关服务
如果Spotlight崩溃或死机,最好通过强制关闭管理 Mac 用户界面的系统服务来启动。
1. 打开Launchpad并选择其他(Other)>活动监视器(Activity Monitor)。
2. 使用右上角的搜索字段在(Search)CPU选项卡下找到以下服务:
SystemUIServer
3.突出(Highlight)服务。然后,选择屏幕顶部的 停止按钮。(Stop)
4. 选择强制退出(Force-Quit)。
5. 或者,通过强制退出与Spotlight 搜索(Spotlight Search)功能相关的以下服务继续:
聚光灯(Spotlight)
mds
6. 退出活动监视器。
2. 重启你的 Mac
接下来,尝试重新启动您的Mac。该问题可能只是由 macOS 中的错误或故障引起的,除了简单的重新启动之外,没有什么可以解决的。
1. 选择菜单栏上的Apple标志,然后选择(Apple)重新启动(Restart)。
2. 取消选中重新登录时重新打开窗口(Reopen windows when logging back in)旁边的框。
3. 再次选择重新启动(Restart)。
提示(Tip):重新启动系统软件是在 iPhone、iPad 和Apple Watch等其他Apple设备上修复Spotlight的好方法。
3.检查你的键盘快捷键
如果您按Command + Space或Option + Command + Space,但没有任何反应,请检查Spotlight Search或Finder Search的键盘快捷键是否处于活动状态。
1. 打开系统偏好设置(System Preferences)应用程序。如果您在 Mac 的Dock(Dock)中没有看到它,请打开Apple菜单并选择System Preferences。
2. 选择键盘(Keyboard)。
3. 切换到快捷方式(Shortcuts)选项卡。
4. 选择侧边栏上的Spotlight。
5. 选中Show Spotlight search(Show Spotlight search)和Show Finder search window旁边的框。
4. 检查您的 Spotlight 设置
如果Spotlight未在其搜索结果中显示特定文件或应用程序,请检查 Mac 的搜索设置。然后,您必须确保将Spotlight设置为显示您想要的搜索结果类别。您可能还需要根据需要从Spotlight的排除列表中删除项目。
1. 打开系统偏好设置(System Preferences)并选择Spotlight。
2. 选中您希望在 Spotlight 搜索结果中的搜索结果(Search Results)选项卡下显示的类别(应用程序(Applications)、文档(Documents)、Siri 建议(Siri Suggestions)等)旁边的框。
3. 然后切换到隐私选项卡以显示从(Privacy)Spotlight索引中排除的所有文件、文件夹和应用程序。然后,选择并使用减号(Minus )按钮删除项目。这将使它们再次显示在搜索结果中。
5. 更新你的 Mac
有缺陷的系统软件可能会导致(Buggy)Mac上出现各种问题。例如,如果您升级到更新的 macOS 迭代,与Spotlight和其他系统相关功能相关的问题是司空见惯的。解决此问题的最佳方法是更新您的Mac。
1. 打开系统偏好设置(System Preferences )应用程序并选择软件更新(Software Update)。
2.等到(Wait)您的Mac完成扫描更新。
3. 选择立即更新(Update Now)。
6.检查磁盘错误
如果您继续遇到与 Spotlight 相关的(Spotlight-related)问题,请尝试使用macOS中的内置磁盘工具小程序检查与驱动器相关的错误。(Disk Utility)
1. 打开Launchpad并选择其他(Other)>磁盘工具(Disk Utility)。
2. 在侧边栏选择Macintosh HD。
3. 选择标有急救(First Aid)的按钮。
4. 选择运行(Run)。
5.等待(Wait)磁盘工具(Disk Utility)完成扫描并修复任何磁盘错误。然后,选择完成(Done)。
或者,您可以通过将 Mac 启动到 macOS 恢复(booting your Mac into macOS Recovery)来修复驱动器错误。如果磁盘工具(Disk Utility)检测到但无法修复磁盘错误,请执行此操作。
7. 重新索引 Spotlight 搜索
以下修复涉及为特定目录或Mac上的整个内部存储手动重建Spotlight索引。
1. 打开系统偏好设置(System Preferences)应用程序并选择Spotlight。
2. 选择加(Plus)号按钮并选择要重新索引的文件夹。如果您想为整个Mac重建(Mac)Spotlight索引,请将Macintosh HD从桌面拖到“隐私(Privacy)”选项卡中。
注意(Note):如果您在 Mac 的桌面上没有看到Macintosh HD图标,请打开Finder并选择菜单栏上的Finder >首选项。(Preferences)然后,选中“常规( General )”选项卡下“硬盘(Hard Disks )”旁边的复选框。
3. 选择确定(OK)以确认您要停止对目录或驱动器的Spotlight索引。
4. 选择您刚刚添加的项目并使用减号(Minus)按钮将其删除。这会强制您的Mac重建索引。如果您选择重新索引整个内部存储,您可能需要等待长达一个小时或更长时间才能再次使用Spotlight。
8. 禁用和重新激活 Spotlight 索引(Reactivate Spotlight Index)
如果Spotlight仍然无法正常工作,请尝试使用Terminal擦除并重建 Mac 的搜索索引。
1. 打开Launchpad并选择其他(Other)>终端(Terminal)。
2. 运行以下命令擦除Spotlight索引:
3. 输入您的 Mac 密码,然后按Enter。
4. 依次运行以下命令以停用和重新激活Spotlight索引:
- sudo mdutil -ai 关闭(sudo mdutil -ai off)
- sudo mdutil -ai on
5. 退出终端。
9.清除Mac的缓存
Mac 上损坏的应用程序和系统缓存(application and system cache on Mac)是阻止 Spotlight 正常工作的另一个原因。处理这个问题的最快方法是使用一个名为 Onyx 的免费应用程序(using a free app called Onyx)。
1. 下载并安装Onyx。
2. 打开Onyx并输入您的管理员密码。
3. 按照屏幕上的说明提供Onyx权限以在您的Mac上运行。这涉及在“全盘访问(Full Disk Access)”和“文件和文件夹”(Files and Folders)部分下选择“打开系统偏好设置”(Open System Preferences)并激活Onyx 。
4. 切换到维护(Maintenance)选项卡。
5. 保留默认选择。如果您想再次重建Spotlight索引,请选中(Spotlight)Launch Services database和Spotlight index旁边的框。
6. 选择运行任务(Run tasks)。
Onyx将开始清除应用程序和系统缓存。同时,您的 macOS 设备将自动关机并重新启动。
回到聚光灯下
如果上述指示未能修复Spotlight Search在(Spotlight Search)Mac上无法正常工作的问题,请尝试在安全模式下执行其他诊断(performing additional diagnostics in Safe Mode)。如果您在此之后仍遇到问题,请考虑安装Spotlight替代品——我们推荐Alfred——并等待下一次 macOS 更新(希望能解决问题)。如果您等不及了,您唯一的办法是从头开始重新安装 macOS(reinstall macOS from scratch)或联系 Apple 支持以获得额外帮助(contact Apple Support for extra help)。
Spotlight Search Not Working on Mac? Try These 9 Fixes
Do you keep running into іssues while using Spotlight Search on Mac? Рerhaps it fails to locate spеcific apps and documents. Or maybe it crashes or fails to shоw up. Many reasons—such as buggy system software, incorrectly configured settings, and corrupt seаrch indexing—often result іn Spotlight Search nоt working on Mac.
This troubleshooting guide will suggest fixes to help you resolve Spotlight-related problems on Mac. These involve restarting the relevant services, double-checking your search settings, rebuilding the Spotlight index, and so on. It’s best to work through them in the order they appear while skipping any that don’t apply.
1. Restart Spotlight-Related Services
If Spotlight crashes or freezes, it’s a good idea to kick things off by force-shutting down the system service that manages your Mac’s user interface.
1. Open the Launchpad and select Other > Activity Monitor.
2. Use the Search field at the top-right to locate the following service under the CPU tab:
SystemUIServer
3. Highlight the service. Then, select the Stop button at the top of the screen.
4. Select Force-Quit.
5. Optionally, continue by force-quitting the following services related to the Spotlight Search feature:
Spotlight
mds
6. Exit the Activity Monitor.
2. Restart Your Mac
Next up, try restarting your Mac. The issue might simply result from a bug or glitch in macOS that nothing other than a simple reboot could fix.
1. Select the Apple logo on the menu bar and choose Restart.
2. Uncheck the box next to Reopen windows when logging back in.
3. Select Restart again.
Tip: Rebooting the system software is a great way to fix Spotlight on other Apple devices like the iPhone, iPad, and Apple Watch.
3. Check Your Keyboard Shortcuts
If you press Command + Space or Option + Command + Space, but nothing happens, check if the keyboard shortcut for Spotlight Search or Finder Search is active.
1. Open the System Preferences app. If you don’t see it in the Mac’s Dock, open the Apple menu and select System Preferences.
2. Select Keyboard.
3. Switch to the Shortcuts tab.
4. Select Spotlight on the sidebar.
5. Check the boxes next to Show Spotlight search and Show Finder search window.
4. Check Your Spotlight Settings
If Spotlight doesn’t reveal specific files or apps in its search results, check your Mac’s search settings. You must then make sure that Spotlight is set up to display the search result categories you want. You may also want to remove items from Spotlight’s exclusions list as needed.
1. Open System Preferences and select Spotlight.
2. Check the boxes next to the categories (Applications, Documents, Siri Suggestions, etc.) you want to appear in Spotlight’s search results under the Search Results tab.
3. Follow that by switching to the Privacy tab to reveal any files, folders, and apps excluded from Spotlight indexing. Then, select and use the Minus button to delete items. That will make them show in search results again.
5. Update Your Mac
Buggy system software can cause all sorts of issues to crop up on your Mac. For example, if you upgrade to a newer macOS iteration, problems related to Spotlight and other system-related functions are commonplace. The best way to fix that is by updating your Mac.
1. Open the System Preferences app and select Software Update.
2. Wait until your Mac finishes scanning for updates.
3. Select Update Now.
6. Check for Disk Errors
If you continue experiencing Spotlight-related issues, try checking for drive-related errors using the built-in Disk Utility applet in macOS.
1. Open the Launchpad and select Other > Disk Utility.
2. Select Macintosh HD on the sidebar.
3. Select the button labeled First Aid.
4. Select Run.
5. Wait until Disk Utility finishes scanning for and repairing any disk errors. Then, select Done.
Optionally, you can repair drive errors by booting your Mac into macOS Recovery. Do that if Disk Utility detects but fails to fix disk errors.
7. Reindex Spotlight Search
The following fix involves manually rebuilding the Spotlight index for specific directories or the entire internal storage on Mac.
1. Open the System Preferences app and select Spotlight.
2. Select the Plus button and pick the folder or folders you want to reindex. If you want to rebuild the Spotlight index for your entire Mac, drag Macintosh HD from the desktop and into the Privacy tab.
Note: If you don’t see the Macintosh HD icon on your Mac’s desktop, open Finder and select Finder > Preferences on the menu bar. Then, check the box next to Hard Disks under the General tab.
3. Select OK to confirm you want to stop Spotlight indexing for the directory or drive.
4. Select the item you just added and use the Minus button to delete it. That forces your Mac to rebuild the index. If you choose to reindex the entire internal storage, you may have to wait for up to an hour or more before you can use Spotlight again.
8. Disable and Reactivate Spotlight Index
If Spotlight still fails to work, try erasing and rebuilding your Mac’s search index using Terminal.
1. Open the Launchpad and select Other > Terminal.
2. Run the following command to erase the Spotlight index:
3. Type in your Mac’s password and press Enter.
4. Run the following commands one after the other to deactivate and reactivate Spotlight indexing:
- sudo mdutil -ai off
- sudo mdutil -ai on
5. Exit Terminal.
9. Clear the Mac’s Cache
A corrupt application and system cache on Mac is another reason that prevents Spotlight from working correctly. The fastest way to deal with that involves using a free app called Onyx.
1. Download and install Onyx.
2. Open Onyx and enter your administrator passcode.
3. Follow the on-screen instructions to provide the Onyx permissions to run on your Mac. That involves selecting Open System Preferences and activating Onyx under the Full Disk Access and Files and Folders sections.
4. Switch to the Maintenance tab.
5. Keep the default selections in place. If you want to rebuild the Spotlight index again, check the boxes next to Launch Services database and Spotlight index.
6. Select Run tasks.
Onyx will begin clearing the application and system caches. Your macOS device will automatically power off and reboot in the meantime.
Back In the Spotlight
If the above pointers failed to fix Spotlight Search not working issues on Mac, try performing additional diagnostics in Safe Mode. If you run into problems even after that, consider installing a Spotlight alternative—we recommend Alfred—and wait for the next macOS update (which will hopefully address the problem). If you can’t wait, your only recourse is to reinstall macOS from scratch or contact Apple Support for extra help.