Home » Tech Tips » Mac » How to Fix Spotlight Search Indexing Problems in Mac?

How to Fix Spotlight Search Indexing Problems in Mac?

Spotlight is the default search engine built with Mac for finding files and document. Though you can use Finder to do complicated searches, using Spotlight is the simpler option. It builds the index and show the search results for your queries. Sometime Spotlight will not work properly making searching and finding your files difficult. If you are having trouble with Spotlight Search indexing on your Mac, here are some steps you can take to fix the problem.

Indexing Issues in Mac Spotlight

When you have indexing issues, Spotlight will show no results or partial results with the indexing progress bar.

No Relevant Results with Indexing Progress Bar
No Relevant Results with Indexing Progress Bar

If this happens frequently, it indicates a problem with Spotlight indexing and you should fix it for finding the files quickly.  

1. Update OS

If you notice the problem happens after upgrading macOS, then check for any latest updates are released by Apple. In most cases, it will be a bug which might have been fixed in the subsequent macOS update.

  • Click the Apple logo and select “System Settings…” menu.
  • Go to “General > Software Update” section.
  • Check if there are updates available and install them.
Check macOS Update
Check macOS Update

Note that indexing problem is a common issue with macOS Developer and Beta versions. So, make sure to turn off the beta updates and wait for the next major release to move back to the stable version.

2. Restart Mac

If you are using the system continuously without shutting down, then restarting your Mac may resolve indexing issues. Go to Apple logo and select “Shut Down…” or “Restart…” option.

3. Check Virtual Machine App / File Sharing

If you are using Windows or any other virtual machine (VM) setup on your Mac, stop sharing apps / files across Mac and your virtual machine. Below is an example shows two Excel apps in Spotlight Search – one from Mac and another from Windows 11 setup with Parallels.

Results with Indexing Bar
Result Shows Two Excel Apps

In cases like Parallels Desktop for Mac, only Windows apps are indexed and not individual files. However, this may vary based on your VM setup. Once we disabled the app sharing, the indexing progress bar disappeared in Spotlight Search. So, unless it is necessary for you, make sure to disable file and app sharing between virtual machines and Mac.

4. Check Indexed Categories

In most cases, you do not want Spotlight to index and search all folders in your Mac for finding the matches. This will also affect the time to show results and overall performance of the system as indexing will always run to find new files, emails, contacts, etc. Good thing is that you can choose the categories for indexing to reduce the search scope thus increasing the speed:  

  • Select “System Settings…” from Apple logo menu.
  • Go to “Spotlight” section from left sidebar.
  • Uncheck the categories that you want to exclude from Spotlight search results.
Select Categories for Spotlight Indexing
Select Categories for Spotlight Indexing

For example, you can exclude emails, contacts and fonts to avoid showing them in search results. On other hand, if you are missing your emails or contacts in Spotlight Search results, then make sure to enable those categories here.

5. Rebuild the Spotlight Index

Generally, checking or unchecking categories will automatically rebuild the index for Spotlight Search. If that does not show any differences in your search results, then you can manually rebuild the index using Terminal command.

  • Open Finder and go to “Applications > Utilities” folder.
  • Find Terminal app and open it.
  • Type the following command in Terminal prompt and press enter.
  • Enter your administrator password to delete the existing index and rebuild again.
sudo mdutil -E /

6. Check Disk Problems

Follow the below steps, if you suspect the problems with your hard disk affect Spotlight indexing.

  • Open Finder and go to “Applications > Utilities” folder.
  • Find “Disk Utility” app and open it.
  • Select your hard drive from the left sidebar and click the “First Aid” option showing on top tool bar.
  • Confirm by clicking on the “Run” button to check and fix errors in your hard drive.
Run First Aid in Disk Utility
Run First Aid in Disk Utility

7. Missing Spotlight on Menu Bar

By default, you can open Spotlight by clicking on the lens icon showing on top Menu Bar (on right side section). If everything is working fine and you are only worrying about the missing lens icon on Menu Bar, you can enable it from the Settings.

  • Click the Apple logo and select “System Settings…” option.
  • Go to “Control Center” section from left sidebar and scroll down to the bottom on the right pane.
  • Under “Menu Bar Only” heading, click the dropdown against “Spotlight” option.
  • Select “Show in Menu Bar” option to add the icon in top Menu Bar.
Show Spotlight in Menu Bar
Show Spotlight in Menu Bar

8. Reset Spotlight Preferences

Next option is to reset your Spotlight preferences by deleting the Property List (plist) file. Make sure you are logged in as an administrator and follow the below steps:

  • Open Finder and go to “Applications > Utilities” folder.
  • Find and open “Terminal” app.
  • Type the following command in the prompt and press Enter.
  • Enter your admin password to run the command.
sudo rm /Library/Preferences/com.apple.Spotlight.plist

This will delete the Spotlight preferences file and your Mac will automatically recreate afresh file when you open Spotlight again.

9. Check Storage Space

Spotlight will have indexing problems when the Mac is running out of storage space. Go to “Apple logo menu > System Settings > General > Storage” section. Check which items are occupying space and clean them up. As you can see in the below screenshot, 379.04 GB is used by System Data which can’t be cleaned up. This will not only make Spotlight indexing slow but also affect the performance of entire system.

Check Mac Storage
Check Mac Storage

In this case, you need to manually scan system folders like “Library” and delete unused files or use a third-party app for cleaning up.

10. Use Alternate Search Options

As mentioned, you can use Finder for doing complex wildcard searches. If you want to use something like Spotlight, then consider using Raycast or Alfred. For example, Raycast allows you to set custom keyboard shortcuts for launching apps and use commands to find apps/files quickly.

Raycast Search Bar
Raycast Search Bar

Final Words

Selecting required Spotlight categories, rebuilding the index and restarting will solve most of the Spotlight indexing problems in Mac. If the above options did not fix your issue, you may need to consult with official Apple Support for assistance. Otherwise, consider using alternate search apps like Raycast.

Leave a Comment

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