Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Our client would like to hide .zip files from search. How do I go about doing this?

The two options I see are to log into central admin and manage the search application, then to go to 'File Types' and delete the zip file type. The other option is to create a new crawl rule and exclude http://somedomain/*.zip

Will either of those work, and if so, what's preferred? Also, if the 'File Types' section isn't what I'm supposed to use, what is the purpose of that section?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

I'd use the later option you list, a search exclusion rule. Removing it from the File Types section will have the same impact, I just prefer to leave that with the default configuration and keep everything in exclusion rules.

Different strokes for different folks.

share|improve this answer
    
This worked, thanks. I didn't have time to test the file type removal only. –  ScottE Jun 3 '11 at 14:58
add comment

I would recommend removing .zip from the allowed file types in the search service application configuration. This is a closer fit to your requirement, and is what that facility was designed for.

If you rely on crawl rules you run the risk of unintentionally allowing the zip files through as you adjust the crawl rules in the future.

Having said that, both solutions will work.

share|improve this answer
    
Oh well, looks like I'll have to rely on the sympathy up-vote :-? –  SPDoctor Jun 3 '11 at 15:00
1  
+1 for the good doctor. –  PirateEric Jun 3 '11 at 15:03
1  
Thanks - I didn't have time to test this on its own, so I went with what worked. I'll give you some more sympathy. –  ScottE Jun 3 '11 at 15:38
    
Yes.. poor doctor and his 3.5k rep. ;) –  Kit Menke Jun 3 '11 at 16:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.