Export (0) Print
Expand All

Define scopes for searches (Office SharePoint Server)

SharePoint 2007

Updated: February 26, 2010

Applies To: Office SharePoint Server 2007

Updated: 2010-02-26

Scopes refine search on particular locations or content. For example, a query on the This Site scope (if available) focuses the search on the current site and its subsites. Default scopes, such as All Sites, are shared among all end-user site collections.

A site collection administrator can copy a default scope, modify that copy, and subsequently add more scopes for use within the site collection. A site collection administrator creates groups that display scopes and arranges scopes within them. As a result, site owners can apply the groups to modify instances of the scope list on their pages.

NoteNote:

By default, the scopes picker on the Advanced Search page is hidden. However, an administrator with permission to edit the Advanced Search page can choose to modify the Advanced Search Web part to display its list and assign a display group to populate it with scopes.

In this article:

Planning scopes

An administrator defines scopes so that users can focus their searches on particular locations and content. When defining a scope, you can combine location rules with property rules to limit searches as desired. For example, a scope can direct a query to particular sites, or to documents marked with particular property values.

NoteNote:

Property values are available to searches by using the managed properties feature to which certain content properties are mapped. A drop-down list of the managed properties that can be used in scopes appears in the Property Query section of the Create Scope page and the Edit Scope page. See the following section Adding or editing scope rules later in this topic.

Displaying the View Scopes page

NoteNote:

The first procedure illustrates how to display the View Scopes page. Use this as a reference when completing subsequent procedures that begin on the View Scopes page.

The procedure that displays the View Scopes page varies depending on whether the Infrastructure Update for Microsoft Office Servers is installed

Display the View Scopes page

  1. Complete one of the following steps depending on the status of your installation.

    • If the Infrastructure Update for Microsoft Office Servers is installed, in Central Administration, on the Quick Launch, in the Shared Services Administration group, click a shared service.

      On the Shared Services Administration page, in the Search section, click Search Administration.

      On the Quick Launch, in the Queries and Results section, click Scopes.

      The View Scopes page appears.

    • If the Infrastructure Update for Microsoft Office Servers is not installed, log on to the home page for the top-level site in the site collection.

      NoteNote:

      Membership in Site Owner or Site Administrator roles is the minimum required to complete this procedure.

      On the Central Administration page, click a shared service.

      In the Search section, click Search settings.

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

      The View Scopes page appears.

  2. To define a new scope, click New Scope, and then follow the steps in the next section, Defining or editing a scope.

    To edit the rules for an existing scope, click the Add rules link when it appears under Update Status, and then follow the steps in the later section Adding or editing scope rules.

    To define a custom display group and arrange scopes within it, click New Display Group, and then follow the steps in the later section Configuring scope display groups.

Defining or editing a scope

Scopes make it possible to focus searches on particular locations or materials. An administrator with site collection administrator permissions can copy a default scope, modify the copy, and add scopes for use within the site collection.

When adding a custom scope to a site collection, it can be helpful to begin by copying a default scope such as All Sites, and then add rules that specify locations, content types, or property values. By combining and adjusting multiple rules, the administrator can design scopes that provide focused searches tailored to the needs of particular work groups.

Define or edit a scope

  1. On the View Scopes page, click New Scope to display the Create Scope page.

    Or click the name of an existing scope to display the Scope Properties and Rules page, and then click Change scope settings to display the Edit Scope page.

  2. In the Title box, type a word, name, acronym, or short phrase to display in the Scopes list.

  3. In the Description box, explain the purpose of the scope. This is an optional description, for your reference, and does not display to end users.

  4. In the Target Results Page section, choose whether to display the results from searches of this scope on the default search results page or a different Web page. To use a different search results page, select Specify a different page for searching this scope, and type the Web address (URL) for another existing results page in the Target results page box. (For example, http://site/subsite/folder/CustomResultsPage.aspx).

  5. Click OK to save the scope and return to the View Scopes page.

Adding or editing scope rules

Add or edit scope rules

  1. On the View Scopes page, point to the name of a scope, click the arrow that appears, and then click Edit Properties and Rules to display the Scope Properties and Rules page.

  2. In the Rules section, click an existing rule to edit that rule or click New rule to display the Edit Scope Rule page and create a new rule.

  3. In the Scope Rule Type section of the chosen page, choose a type of rule.

    The choices are Web Address, Property Query, Content Source, or All Content.

    • To include or exclude a location, choose Web Address, and type a location in one of the boxes. (To apply rules to multiple locations, define a separate rule for each location.)

      If you type a path in the Folder box (for example, http://site/subsite/folder), the rule applies only to items located within the folder indicated and its subfolders.

      If you type a host name in the Hostname box, the rule applies to items located anywhere on that host.

      If you type a domain name in the Domain or subdomain box (for example, widgets.msn.com), the rule applies to all items located within that domain.

    • To include or exclude content found by searching on a value assigned to a managed property, choose Property Query. Select a property, and then enter a value. (To apply rules to multiple properties or values, define a separate rule for each property setting.)

      To make additional managed properties available for use in scopes, navigate to the managed properties list, and then select Allow this property to be used in scopes for the desired managed properties. To navigate to the managed properties list, go to the Search Administration page, and, under Queries and Results, click Metadata properties.

    • To create a scope that includes anything that is crawled by the content source called Local Office SharePoint Server sites, under Scope Rule Type choose Content Source, and under Content Source select Local Office SharePoint Server sites.

    • To apply a rule to all content from all sites included in the search index, choose All Content.

  4. Select a Behavior to choose how this rule combines with other rules to define the scope. Choose Include for an "OR" rule, or Exclude for an "AND NOT" rule, or Require for an "AND" rule, and click OK to apply the rule.

    For example, if you apply include rules named I1 and I2, require rules named R1 and R2, and exclude rules named E1 and E2, the resulting scope equals the following:

    (I1 OR I2) AND R1 AND R2 AND (NOT E1) and (NOT E2)

NoteNote:

Search scopes and their rules are compiled on a schedule that is adjusted automatically based on the frequency of past updates. The search services administrator can also set scope updates to occur manually. A new scope does not appear in a Search Box scope list until after its first compilation.

Deleting a scope or scope rules

Deleting a scope

  1. On the View Scopes page, point to the name of the scope, expand the menu that appears, and then click Delete.

  2. When you are prompted, click OK.

Deleting scope rules

  1. On the View Scopes page, point to the name of a scope, expand the menu that appears, and then click Edit Properties and Rules. This displays the Scope Properties and Rules page.

  2. To delete an individual scope rule:

    1. Click the name of the rule on the Scope Properties and Rules page.

    2. At the bottom of the Edit Scope Rule page, click Delete.

  3. To delete all rules for a scope:

    1. Find the Rules section of the Scope Properties and Rules page.

    2. Click Delete all rules.

Configuring scope display groups

An administrator with site collection administrator permissions can create a new scope display group and arrange scopes within it, or add scopes to existing display groups.

Creating or editing scope display groups

To enable a site owner to change the scopes available from the scope list beside a Search box, a site collection administrator can modify existing display groups, or create new display groups and arrange scopes within them. A site owner can then use this new display group to modify the scope list in instances of the Search Box Web Part.

ImportantImportant:

To create and edit display groups, a site collection administrator logs on to the home page for the top-level site in the site collection.

Create or edit scope display groups

  1. On the Site Actions menu, point to Site Settings, and then click Modify All Site Settings.

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

  3. On the View Scopes page, click New Display Group to display the Create Scope Display Group page.

    Or click the name of a custom display group to display the Edit Scope Display Group page.

  4. On the selected page, type a Title that helps site owners to identify the display group.

  5. Type a Description that explains the range of scopes provided in this display group, and where these choices might be useful.

  6. In the Scopes section, select the check box next to each scope to include in the display group.

  7. Use the Position from Top lists to adjust the order of scopes within the display group.

  8. In the Default Scope list, choose the scope to be selected when the scope list is displayed, and searched if the user does not change the selection.

  9. Click OK to finish creating the new display group.

Including a scope in display groups

A scope can be added to existing display groups from the Edit Scope page.

Include a scope in display groups

  1. On the View Scopes page, point to the name of a scope, click the arrow that appears, and then click Edit Properties and Rules.

    Select the scope that you want to include in a display group.

  2. On the Scope Properties and Rules page, click Change scope settings in the Scope Settings section.

  3. On the Edit Scope page, select any Display Group to include in this scope, and clear any not to include.

  4. Click OK to save your changes.

Assigning a display group to a scope list

ImportantImportant:

To complete this procedure, you must have at least Designer permissions.

Assign a display group to a scope list

  1. Log on to the Search Center site with at least Designer permissions.

    NoteNote:

    An administrator with site collection administrator permissions can modify any Web site within the site collection. A site owner can modify all pages on one site.

  2. Click the Site Actions menu, and choose Edit page.

  3. Move the cursor to the Search Box Web Part, expand its Edit menu, and choose Modify Shared Web Part.

  4. Within the Search Box tool pane, click the plus sign (+) to expand the Miscellaneous section.

  5. Scroll to the Scope Display Group box, type the name of the display group that furnishes the scopes for this scope list, and then click Apply.

  6. Make any other changes desired, and then click OK to close the tool pane.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft