Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Spotlight ignores '.noindex' named folders System 10.4
Tiger only hintI found a hidden Spotlight feature accidentally while using the Migration Assistant. I noticed that all my "incoming" files were saved into a folder called "username.noindex" ... and Spotlight did not try to look into these folders.

This works with every folder. So if you want to create some Spotlight excluded folders, just add ".noindex" to the folder's name -- "blind.noindex," for instance, to create some "blind spots."

[robg adds: You can do the same thing, of course, using the Privacy tab in the Spotlight preferences panel. This method seems quicker, though I don't know how it works for content that's already been indexed -- you might need to add then remove that folder from the Privacy tab anyway to get the index to be updated...]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[14,838 views]  

Spotlight ignores '.noindex' named folders | 10 comments | Create New Account
Click here to return to the 'Spotlight ignores '.noindex' named folders' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Spotlight ignores '.noindex' named folders
Authored by: MVasilakis on Jun 13, '05 11:43:59AM

Is there a way to set a flag for this in terminal?



[ Reply to This | # ]
Spotlight ignores '.noindex' named folders
Authored by: BenBurner on Jun 13, '05 12:45:53PM
Not a real flag, but you may want to try

touch .noindex
or whatever filename pleases you, as long as it ends with .noindex, which creates just an empty file.

[ Reply to This | # ]
Spotlight ignores '.noindex' named folders
Authored by: MVasilakis on Jun 13, '05 02:37:32PM

oh any file named noindex inside a folder will prevent it from bing indexed?
I thought the folder needed to be named xxx.noindex



[ Reply to This | # ]
Spotlight ignores '.noindex' named folders
Authored by: BenBurner on Jun 15, '05 11:20:35AM

Oh sorry, you are right. I should read more carefully, thanks for pointing that out...



[ Reply to This | # ]
Spotlight ignores '.noindex' named folders
Authored by: kyngchaos on Jun 13, '05 12:04:51PM

BUT, does this work like the Privacy setting? ie does it just prevent Spotlight from finding stuff in that folder, while still indexing it? (And the Finder Find would find it). If so, it's just an ugly alternative to the Privacy setting.

Or does it actually block indexing? That would be great! No indexing many megabytes of temp download files, and no finding in a Finder Find. But how would you un-index it after changing it? Or is that automatic?

I don't want to try this yet - I had heck of a time getting the initial Spotlight indexing to work and don't want to mess with it.



[ Reply to This | # ]
Spotlight ignores '.noindex' named folders
Authored by: MVasilakis on Jun 13, '05 02:54:18PM

Well my machine keeps loosing the privacy settings so this a better way of ensuring that soptlicght doesnt get 'lost' in my fonts folder again. (or reindex the external firewire drive every time)



[ Reply to This | # ]
Spotlight ignores '.noindex' named folders
Authored by: slb on Jun 13, '05 05:02:09PM

I created a folder named "test.noimage"
I put some things in there and did a search - I was able to "find" items in there.
I am assuming it's not indexed, but it is still searchable...

SB



[ Reply to This | # ]
Spotlight ignores '.noindex' named folders
Authored by: qwerty denzel on Jun 14, '05 02:30:37AM

Huh?



[ Reply to This | # ]
Spotlight ignores '.noindex' named folders
Authored by: marklander on Jun 14, '05 11:59:12AM

I read that the Finder doesn't honor Privacy settings but I couldn't reproduce this in my tests.

Anyway, folder.noindex seems to hide its contents from Spotlight and Finder searches, even when the extension is added to an existing folder. Remove the extension and the contents become searchable.

Interestingly, if you search for something in a Finder window and then add or remove the .noindex extension from the containing folder (on the desktop, perhaps), the Finder window will update to reflect the change.



[ Reply to This | # ]
Spotlight ignores '.noindex' named volumes
Authored by: mclbruce on Jun 14, '05 05:31:40PM

I was able to get Spotlight to ignore volumes with the .noindex suffix. I am using a FireWire disk with two partitions. It didn't seem to work at first, but after a shutdown and startup Spotlight is ignoring the partitions. This will come in handy during backup.



[ Reply to This | # ]