Well for me that kinda makes spotlight useless. How am I supposed to find something buried into my drive now?
What surprises me is that many aren't really talking about this as far as I'm aware. Guess only us "pro" users would really be concerned with searching on those directories. Unless of course no one has that problem. I completely agree with you there.
There has to be a way to get it to search the entire drive.
What surprises me is that many aren't really talking about this as far as I'm aware. Guess only us "pro" users would really be concerned with searching on those directories. Unless of course no one has that problem. I completely agree with you there.
Search System Files
Use Spotlight to search system files
I'm sure it would be inconvenient for users who spend a lot of time searching for system files, but for the majority of users who are only interested in data or content, then spotlight would be a great deal quicker as it won't need to search through 5Gb+ of OS X files.
Having said that, is there a way you can trick spotlight for searching system folders, like creating a soft or hard link in a spotlight searchable folder (i.e. your home folder) to a system folder?
So whats wrong with a simple preference, perhaps off by default.
I've tried having alias in my home directory but spotlight doesn't search through it or even recognise it.
There has to be a way to get it to search the entire drive.
Force Spotlight to Index Files
By default, Spotlight ignores many directories, such as your Classic System Folder. Sure, that makes results easier to comb through if you never need to look for OS 9 fonts; but if you do need to search these directories, it can be a real pain.
Use the mdimport command to add files to your Spotlight indexes. When you do, you’ll be able to search for much more than the default selection of files and folders. (When you add to your indexes this way, Spotlight won’t continue to index the new files automatically. You’ll have to run the command again.)
The mdimport command forces Spotlight to index a folder. When you run the command, you’ll index all the contents of the directory and its subdirectories. The basic command structure looks like this: mdimport -f directory name.
So if you want to index your Classic System Folder, you’d type mdimport -f /"System Folder" (assuming that the System Folder is at the root level of your startup volume).
If you want to index other folders, or if Spotlight is not finding certain files, use the same command with the appropriate paths to index or reindex specific directories or volumes. Note: Spotlight doesn’t index text files that lack the .txt extension. That means you won’t be able to improve its ability to find, for example, configuration (.config) files and preference (.plist) files.
-w msecs Wait for the specified interval between scanning files.
The -f switch is obsolete in Leopard and beyond.
(When you add to your indexes this way, Spotlight won’t continue to index the new files automatically. You’ll have to run the command again.)
The other option could be to use Spotlight from the command line. "mdfind" is the command for searching Spotlight metadata.
The command "mdfind" does search inside the Systems folder whereas the search using the Spotlight search (GUI) doesn't. I don't understand.![]()
It does already index the system files and when you access it through a finder window search the results are instant.
I tried to search for the same word "zfs" inside a Finder window. But it didn't give me any results. I chose to search "This Mac" and tried both "Contents" and "File Name" options. But it didn't give me any results.
Am I missing something?