catalina mds

How do I re index my files on Catalina 10.15.5? Im trying to solve an issue where spotlight does not return results from docs or apps, only safari. In activity monitor mds_stores is hitting 100% cpu.


I've followed the advice to add and remove directories to private in spotlight preferences but this doesn't seem to work. Ive disabled spotlight in terminal which solves mds_stores issue but I would like to troubleshoot this correctly so I can use spotlight again.


Thanks

MacBook Pro

Posted on May 28, 2020 10:00 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 18, 2020 11:56 PM

mdutil is your friend.

checkout "man mdutil" form the terminal


To reset the index:


Open a terminal an type:


Turn indexing off for all drives:

sudo mdutil -a -i off

Erase the local store for indexing data

sudo mdutil -a -E

Maybe also erase the store from the drive via

sudo rm -rf /.Spotlight-V100/*

Finally turn indexing back on

sudo mdutil -a -i on


If you don't want to do this for all drives omit the -a parameter and pass the path to the volume at the end of the command

e.g.:


sudo mdutil -I off /Volumes/<Name of your HDD>


1 reply
Question marked as Top-ranking reply

Jun 18, 2020 11:56 PM in response to d3tail

mdutil is your friend.

checkout "man mdutil" form the terminal


To reset the index:


Open a terminal an type:


Turn indexing off for all drives:

sudo mdutil -a -i off

Erase the local store for indexing data

sudo mdutil -a -E

Maybe also erase the store from the drive via

sudo rm -rf /.Spotlight-V100/*

Finally turn indexing back on

sudo mdutil -a -i on


If you don't want to do this for all drives omit the -a parameter and pass the path to the volume at the end of the command

e.g.:


sudo mdutil -I off /Volumes/<Name of your HDD>


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.

catalina mds

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