With Spotlight you can find the necessary documents or files in a matter of seconds. But what if the file does not appear in the search results, although you know for sure that it is present on your Mac? In this case, you should re-index the drives.
A similar error could have occurred due to system updates, especially if the clean installation of macOS has not been performed for many years. Today we will look at two ways to solve this problem.
The first way
Now Spotlight will index the contents of the hard disks again. It can take from several minutes to several hours depending on the amount of data and the speed of the drive.
The second way
sudo mdutil -i on /
Immediately after this, the re-indexing process will begin.