SharePoint 2010 Search

Slalom Consultant Marc Schuricht

Slalom Consultant Marc Schuricht is a Denver based software Solution Architect with over 12 years of professional experience in IT projects ranging from configuration and change management to custom enterprise application development.

This has been posted on the web more than once, but I always have a hard time finding it…My client wants to restrict the search capabilities of SharePoint 2010 to only include subwebs, excluding lists, libraries, items, pages, etc.  This is a pretty easy thing to accomplish, but as with a lot of things in SharePoint, a little bit obscure.  What I need to do is add scope rules to exclude sets of “contentclass” items:

SharePoint search - scope rules to exclude sets of “contentclass” items:

Click to see full size: scope rules to exclude sets of “contentclass” items

the list of relevant contentclass-es are:

STS_Web  —  Site
STS_List_850  —  Page Library
STS_ListItem_850  —  Page
STS_List_DocumentLibrary  —  Document Library
STS_ListItem_DocumentLibrary  —  Document Library Items
STS_List  —  Custom List
STS_ListItem  —  Custom List Item
STS_List_Links  —  Links List
STS_ListItem_Links  —  Links List Item
STS_List_Tasks  —  Tasks List
STS_ListItem_Tasks  —  Tasks List Item
STS_List_Events  —  Events List
STS_ListItem_Events  —  Events List Item
STS_List_Announcements  —  Announcements List
STS_ListItem_Announcements  —  Announcements List Item
STS_List_Contacts  —  Contacts List
STS_ListItem_Contacts  —  Contacts List Item
STS_List_DiscussionBoard  —  Discussion List
STS_ListItem_DiscussionBoard  —  Discussion List Item
STS_List_IssueTracking  —  Issue Tracking List
STS_ListItem_IssueTracking  —  Issue Tracking List Item
STS_List_GanttTasks  —  Project Tasks List
STS_ListItem_GanttTasks  —  Project Tasks List Item
STS_List_Survey  —  Survey List
STS_ListItem_Survey  —  Survey List Item
STS_List_PictureLibrary  —  Picture Library
STS_ListItem_PictureLibrary  —  Picture Library Item
STS_List_WebPageLibrary  —  Web Page Library
STS_ListItem_WebPageLibrary  —  Web Page Library Item
STS_List_XMLForm  —  Form Library
STS_ListItem_XMLForm  —  Form Library Item
urn:content-class:SPSSearchQuery  —  Search Query
urn:content-class:SPSListing:News  —  News Listing
urn:content-class:SPSPeople  —  People
urn:content-classes:SPSCategory  —  Category
urn:content-classes:SPSListing  —  Listing
urn:content-classes:SPSPersonListing  —  Person Listing
urn:content-classes:SPSTextListing  —  Text Listing
urn:content-classes:SPSSiteListing  —  Site Listing
urn:content-classes:SPSSiteRegistry  —  Site Registry Listing

Oh yeah…and this is the same for SharePoint 2007 Search as well.

Sources:

http://www.devcow.com/blogs/jdattis/archive/2007/12/20/the-contentclass-and-isdocument-properties-along-with-the-welcome-page-caveat.aspx

http://blogs.msdn.com/jjameson/archive/2009/03/05/excluding-various-sharepoint-items-from-search-results-on-internet-facing-moss-sites.aspx

Slalom Consulting's Denver office Slalom Consulting has 6 Gold Microsoft Partner Competencies
More about Slalom Consulting’s Denver office. More about Slalom Consulting’s Microsoft Partnership.

subscribe by emailSubscribe to be emailed about new SharePoint posts.

2 Responses to SharePoint 2010 Search

  1. vikas says:

    Hi Marc,

    Is there any content class by including this in scope we can search on older versions of documents stored in a SharePoint Site. My client is using SharePoint 2010 for e discovery and it is important for them that search inside SharePoint should be thorough and any search performed should look for matching content in older version of document as well. I have not found any way to extend search scope to search inside older version of documents. Finally I found a product which offers capability to search on older version of documents inside SharePoint. Their demo at link http://stoictech.sharepoint.com/Pages/VersionSearch.aspx looks impressive. Is there is any other way to implement this or any better product in market.
    Any suggestions!!!

    thnaks,

    Vikas

  2. Pingback: Getting a list of sites that a user has access to in SharePoint | The SharePoint Doctor

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: