How to prevent Spotlight from indexing files
In addition to using Spotlight's privacy list, a simple name extension can keep Spotlight from indexing specific files and folders.
For example, if you have a collection of outdated program versions in a folder called "past versions," you might wish to keep Spotlight from showing them all, and only have it locate the most recent one that you use. This might also be true for temporary files you have on your system, such as those in the Downloads folder.
For more static locations on the system such as the Downloads folder, you can add these to the Spotlight privacy list in the Spotlight system preferences (either by dragging and dropping, or by using the plus button at the bottom of the list), and they should be excluded from Spotlight's indexing routines.
With the extension "noindex" included, this folder and its contents will not be indexed by Spotlight. |
Undoing this change simply requires removing the extension, and the item will then be indexed.
This feature may seem unnecessary for some in the face of graphical options like the Spotlight system preferences, but in addition to quickly excluding files on the fly, it also has benefits for those who use the Terminal either locally or remotely, where you do not have access to the system preferences.
The one problem with this tip is that altering file extensions may break the system's ability to recognize and use them, so it may not always be practical for use with files; however, when used with folders it may offer a quicker way to prevent spotlight indexing for any enclosed items.
0 komentari:
Speak up your mind
Tell us what you're thinking... !