You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Spotlight Issues

My spotlight search is not working. Does not find files that exists. It indexes some files and then rebuilds automatically to zero.

Tried rebuilding the index by adding entire directory of my user to spotlight security.

Tried restarting.

Checked searchable category list in settings.


Please help.

MacBook Pro 13″

Posted on Sep 24, 2024 8:06 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 24, 2024 8:17 AM

If Spotlight search isn’t working and keeps resetting the index to zero, first try rebuilding the index using Terminal by entering sudo mdutil -E / to force a complete reindex of your system. You should also check for disk errors using Disk Utility’s "First Aid" function, as issues with the drive can interfere with indexing. Verify file permissions by resetting them via Terminal with the command sudo diskutil resetUserPermissions / \id -u``. If external drives or network drives are connected, try disconnecting them as they may be causing problems with Spotlight. Finally, if these steps don’t help, consider resetting the SMC and PRAM, which can sometimes resolve system-wide issues affecting Spotlight.

6 replies
Question marked as Top-ranking reply

Sep 24, 2024 8:17 AM in response to Mdogru

If Spotlight search isn’t working and keeps resetting the index to zero, first try rebuilding the index using Terminal by entering sudo mdutil -E / to force a complete reindex of your system. You should also check for disk errors using Disk Utility’s "First Aid" function, as issues with the drive can interfere with indexing. Verify file permissions by resetting them via Terminal with the command sudo diskutil resetUserPermissions / \id -u``. If external drives or network drives are connected, try disconnecting them as they may be causing problems with Spotlight. Finally, if these steps don’t help, consider resetting the SMC and PRAM, which can sometimes resolve system-wide issues affecting Spotlight.

Oct 2, 2024 7:35 AM in response to Mdogru

Mdogru wrote:

Thank you but I am not a fan of installing so-called "utilities" and also pasting my system details. I have seen enough fraud so... Not to offend.

That is your prerogative, though etrecheck which we have been recommending for a decade does spare us asking 20 questions about your macOS and third-party software installations that may be contributing to the problem. Etrecheck completely protects your privacy and would not reveal anything that would lead to fraudulent activity.


When you encounter Disk Utility First Aid errors in recovery mode and subsequent runs of First Aid do not give you a green success result, then your drive is likely damaged and needs to be replaced followed by a clean nstall of macOS and Time Machine migration.

Oct 2, 2024 6:37 AM in response to nickyyw

Thank you for the detailed answer. Apparently I have disk issues. When I run Disk Utility’s "First Aid" function in recovery mode it gave me File System repair filed with -69845 error code. And Also File System Check Exit code 8 unsuccessful. The mdutil -p says "datastore publishing not implemented.". I am not sure how to proceed. Maybe a Time Machine backup and re-install the system? What do you recommend ?

Spotlight Issues

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