Share via


Create a search scope for people search (Office SharePoint Server 2007)

Applies To: Office SharePoint Server 2007

This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.

 

Topic Last Modified: 2016-11-14

You use a search scope to define a subset of information in the content index. The scope is used when users perform searches to restrict the search results to that subset of the index. You can create multiple search scopes for performing people searches. Each search scope that you create can be configured to search through different subsets of information in the content index.

To use a search scope for people search, you create a search scope, add rules to the scope, and then assign it to a display group.

Before you perform this procedure, confirm that:

Important

To create global-level search scopes, membership in the Viewers SharePoint group on the Shared Services Administration site is the minimum required to complete this procedure. Membership in the Farm Administrators SharePoint group is insufficient to perform this procedure.
To create site-collection-level search scopes, you must be a site collection administrator on the site collection that will contain the Search Center for which you are creating the scope, scope rules, and display group to complete this procedure.

Global and site-collection level search scopes

Administrators can create search scopes at two levels:

  • A first level is the Shared Services Provider (SSP), also known as the global level. The search scope instances that are created at this level are called shared search scopes because, as soon as they are defined, they are re-usable anywhere within the server farm or stand-alone server installation; that is, for the SharePoint sites that are associated with the specified SSP.

  • The second level is the site-collection level. Site collection administrators can limit the search scope for use only within one specific site collection.

Display groups

You must associate the search scope with a display group. A display group is a layer between the actual search scopes and the control that displays the search scopes to the user. A search scope, which is defined either at the global level or site-collection level, will not be displayed in the controls in the SharePoint pages unless it is associated with a display group.

To support a customized search experience, you can create one or more new display groups with which to associate the search scopes, and you can assign scopes to the default display groups. A display group can contain one or more scopes. Site administrators can also control the order in which scopes appear in a particular display group. After you create a display group, designers can modify the People Search Box Web Part to display the scopes within the display group in the Search drop-down list. This modification is useful when display groups contain more than one scope and you want to enable users to select a specific scope for a query.

Although search scopes can be created at either the SSP (global level) or the site collection levels, display groups can only be created and associated at the site collection level.

Use the following procedures in the order listed to create a global-level or site-collection-level search scope for people search, add rules to the search scope, assign the search scope to a display group, and enable custom scopes to appear in the search list.

-
Create a search scope

-
Add rules to the scope

-
Assign the scope to a display group

-
Enable custom scopes to appear in the search list

Create a search scope

  1. Open the View scopes page.

    1. For creating a global-level search scope:

      1. On the Shared Services Administration Home page for the Shared Services Provider, in the Search section, click Search settings.

      2. On the Configure Search Settings page, in the Scopes section, click View scopes.

    2. For creating a site-collection-level search scope:

      1. On the top-level site of the site collection for which you want to create the scope, click Site Actions, and then click Site Settings. If an option for Modify All Site Settings appears, click it.

      2. On the Site Settings page, in the Site Collection Administration section, click Search scopes.

  2. On the View Scopes page, click New Scope.

  3. On the Create Scope page, in the Title and Description section, in the Title text box type the name of the scope; for example, Contoso People Search Scope. This title appears in the search drop-down lists to which you associate the scope.

    Important

    Use only letters, numbers and spaces in the scope name. Do not use punctuation or any other characters, which SharePoint might not recognize as valid in the scope name.

  4. Optionally, describe the scope in the Description box.

  5. In the Target Results Page section, select Specify a different page for searching this scope.

  6. In the Target results page text box, type the document library name and the file name that you want to use for the people search results page, including the .aspx file name extension — for example, PeopleSearchDocumentLibrary/PeopleSearchResultsPage.aspx — and then click OK. The View Scopes page opens.

Now use the following procedure to create a scope rule for people search in the search scope.

Add rules to the scope

  1. On the View Scopes page, in the Title column, point to the name of the newly created scope, click the down arrow, and then click Edit Properties and Rules.

  2. On the Scope Properties and Rules page, in the Rules section, click New rule.

  3. On the Add Scope Rule page, in the Scope Rule Type section, select Property Query.

  4. In the Property Query section, in the Add property restrictions drop-down list, click contentclass.

  5. In the text box under the drop-down list, type urn:content-class:SPSPeople. This is case-sensitive so type it exactly as shown.

  6. In the Behavior section, select Require – Every item in the scope must match this rule, and then click OK. The Scope Properties and Rules page opens.

Assign the scope to a display group

Use the following procedure to assign scopes to an existing display group or to create display groups to which you want to assign the scopes.

  1. On the top-level site of the site collection on which you want to assign the scope to a display group, click Site actions, and then click Site Settings. If an option for Modify All Site Settings appears, click it.

  2. On the Site Settings page, in the Site Collection Administration section, click Search scopes. The View Scopes page opens.

  3. Either assign the scope to an existing display group or create a new display group to which to assign the scope:

    • To use an existing display group — for example, the People display group — in the Title column:

      1. Click the name of the display group from the list of existing groups. The Edit Scope Display Group page opens.

      2. In the Scopes section, look in the Scope Name column for the name of the search scope that you want to use. In the Display column, select the check box for the scope.

      3. Optionally, use the Position from Top list to specify the order in which the scopes will are displayed to the user for this display group.

      4. In the Default Scope section, click the Default Scope drop-down list, select as many scopes as you want, including the search scope that was created in the procedure Create a search scope, and then click OK. The View Scopes page opens.

    • To create a new display group, click New Display Group. The Create Scope Display Group page opens.

      1. In the Title and Description section, in the Title text box type a name for the scope display group; for example, Contoso Display Group. Note that unlike the scope name, the scope display group name can contain spaces, punctuation, and characters other than letters or numbers.

      2. Optionally, describe the display group in the Description box.

      3. In the Scopes section, in the Display column select the scopes to include in this display group. Select as many scopes as you want, including the search scope that was created in the procedure Create a search scope.

      4. Optionally, use the Position from Top list to specify the order in which the scopes will are displayed to the user for this display group.

      5. In the Default Scope section, click the Default Scope drop-down list, locate the name of the default scope that was created in the procedure Create a search scope, and then click OK. The View Scopes page opens.

Enable custom scopes to appear in the search list

Custom scopes include scopes managed at the site collection or by the SSP. When you enable the site collection to use custom scopes, the custom scopes appear in the search list. Use the following procedure to connect the customized people search scope to the site collection, to enable custom scopes to appear in the search list.