With OS X Lion installed on you Mac you are likely to have noticed that few things that where easy to perform on your previous flavor of OS X are not a little bit more tricky. This is the case if you want to have spotlight re-indexed, if, for any reason, you index has been corrupted and is now displaying 'false' information.
On previous vesion of OS X it there were a GUI to request spotlight to be re-indexed. Now, on OS X Lion you have to go throught a command line process.
My guess is that since in OS X Lion spotlight is randomly re-indexed when you are starting your Mac, then, you do not need such a feature... But, there are cases where you want things to be done right now!
Launching the Terminal

Go to Applications > Utilities and launch Terminal.app (or, if you have installed iTerm on your system go to Application > iTerm) and type in the following 2 commands:
1. sudo mdutil -E /
2. sudo mdutil -i on /
As you can see and since you are using the sudo command to access mdutil you will be requested to enter you admin password.
After a couple of seconds (depending on your system) spotlight re-index will start and you will see the following screen:
Ongoing Spotlight re-index

At first a full check of what has to be done will take place (picture above) and then re-index will be launch by spotlight. Depending on your system and the amount of information you want to index the process can take more than 2hours.
0 commentaires:
Enregistrer un commentaire