Exclude search results from root site collection RRS feed

  • 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?



    • Edited by Sulabh Gupta Friday, September 27, 2013 12:06 PM
    Friday, September 27, 2013 12:01 PM


All replies

  • You will have to set up include rules for each site collection.

    Blog |SharePoint Field Notes Dev Tool | SPFastDeploy

    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_Survey

    I 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)


    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!
    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