Answered by:
Exclude search results from root site collection

Question
-
Hi,
So i have a web application with few site collections. I am creating a search scope in Central Admin and I want to exclude results from only the root collection. The problem is that an exclude rule on a folder with the path as root if specified will exclude everything under that path including all the site collections and not just root.
Any ideas how to do this?
Regards
Sulabh
- Edited by Sulabh Gupta Friday, September 27, 2013 12:06 PM
Friday, September 27, 2013 12:01 PM
Answers
-
You may want to try just the web address as required and the other property rules as include.
Blog |SharePoint Field Notes Dev Tool | SPFastDeploy
- Marked as answer by tracycai Thursday, October 3, 2013 10:40 AM
Monday, September 30, 2013 2:49 PM
All replies
-
You will have to set up include rules for each site collection.
Blog |SharePoint Field Notes Dev Tool | SPFastDeploy
- Proposed as answer by Ram Prasad Meenavalli Monday, September 30, 2013 2:54 AM
Monday, September 30, 2013 1:26 AM -
This scope that i am creating, includes only a few specific types on Content like Announcements, Events, Discussions, Pictures. Below are the rules.
contentclass = STS_ListItem_DiscussionBoard
contentclass = STS_ListItem_PictureLibrary
contentclass = STS_ListItem_Posts
contentclass = STS_ListItem_Announcements
contentclass = STS_ListItem_Events
contentclass = STS_List_SurveyI can't make a rule to include a site collection as that will then include all the types of content in the scope. Is there a Property that i can use in the Property Query to exclude a particular Site or a Site collection?
Monday, September 30, 2013 12:17 PM -
You need to set up a "required" web address rule for the site collection and "require" rules for each content class. This means that all rules must be met for the item to be returned in the results.
Blog |SharePoint Field Notes Dev Tool | SPFastDeploy
Monday, September 30, 2013 1:44 PM -
Alternatively you can create a content source which has start URLs of the site collection ( with out root site collection you want to exclude)
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/373bd536-37f5-4386-8f17-a106fdd881a2/search-the-particular-site-collection#e7ba47bb-003e-4f44-92d0-031121260600
Monday, September 30, 2013 1:55 PM -
The required rules aren't going to work because a content class can only have one value. It cannot be Announcement and Event at the same time for example. I guess the content source thing can work but every time a new site collection is created that content source would have to updated. Thanks a lot for your help!
- Edited by Sulabh Gupta Monday, September 30, 2013 2:10 PM
Monday, September 30, 2013 2:05 PM -
You may want to try just the web address as required and the other property rules as include.
Blog |SharePoint Field Notes Dev Tool | SPFastDeploy
- Marked as answer by tracycai Thursday, October 3, 2013 10:40 AM
Monday, September 30, 2013 2:49 PM