Just little about C#, .NET, SQL Server, SharePoint and SAP

Creating shared custom search scopes in SharePoint

Posted by zieglers on August 3, 2010

Business Requirement:

Let’s say there is a request where users want to be able to search a set of site collections.  For example, HR has 3 site collections. HR would like their users to be able to search all 3 site collections at once, but only those three. 

This can be done with painful criteria manually entered into your search, but it seems like a custom search scope is the cleanest solution. 

By only creating the search scope, that scope won’t be available in the search dropdown on all pages on that site.  It won’t show up anywhere. To use custom search scopes requires the user to create a search center for their collection. 

Question: How would you have an end user SCA create a custom search scope for their site to search against 3 site collections?


Custom search scopes require a dedicated search center be created. Otherwise, custom scopes won’t be visible in search dropdown.

SCAs can create custom scopes and make those available to end users by doing proper configuration in site collection search settings and search scopes.


Custom search scopes can be created by SCAs in order to search a set of site collections. Before doing so a dedicated content source to serve those scopes must be created in Central Admin by farm administrator.

Create a new Content Source. (performed by Farm Admin)

Create a shared scope using content source created above. (performed by Farm Admin)

Update scopes. (performed by Farm Admin)

Go to your site collection settings.  Search Scopes. (performed by SCA)

Make a shared copy of search scope. (performed by SCA)(Repeat these steps for search center as well.)

 Note: Create your shared scope both for your site collection and for search center. Don’t forget to use same scope names. In case you don’t create one for search center, you’ll receive an error saying “Scope in your query does not exist”.

Edit copied scope.

Provide Search Center Url for Custom Scopes. (performed by SCA)

Now go to your site collection and search something using the scope you just created.


You’ll see that results are displayed only for site collections you provided in your content source.

In this case, results are displayed for HR sites 1-2-3.


2 Responses to “Creating shared custom search scopes in SharePoint”

  1. mcsemcitp said

    nice work

  2. how to get a blog…

    Creating shared custom search scopes in SharePoint « Zieglers…

Leave a Reply

Please log in using one of these methods to post your comment:

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: