MOSS Enterprise Search. Part 2
In this part of the series you will learn how to set up Search Scopes. Search scopes allow to create specially defined groupings of searchable content, which can be chosen by users when executing a search.
- Go to the Sharepoint 3.0 Central Administration site
- Click on the Search Settings link in the Search section:
- Click View Scopes in the Scopes section:
- Click New Scope link in the toolbar:
- In the Create Scope wizard you can specify title, description and target search page for the new scope.
- After pressing Ok button you get back to the View Scopes page and now you see your scope in the list:
- Now click on "Add rules" link to start a New Scope Rule wizard. Four types of scope rules are supported: Web Address, Property Query, Content Source and All Content. In our example we want the scope to include MOSS site users, so we choose Property Query scope rule type, and as a property restriction we use contentclass, specifying following query: urn:content-class:SPSPeople
- Then we choose how the rule will be applied to the overall scope: whether any item that matches the rule will be included in the scope, or excluded from the scope, or any result in the scope has to match this rule. In our example we choose "Include". Then click "OK" to apply the rule.
- Now, if you want this search scope to be available before the next scheduled update, you can force update by going back to Search Settings page in Shared Services site (use site breadcrumb
) and clicking "Start update now" link:
- New search copes are not added to the existing site collections automatically. We need to perform the following steps to make the scope show in the search drop down:
- On the portal home page select Site Actions -> Site Settings -> Modify All Site Settings
- Click Search Scopes in the Site Collection Administration section
- Click Search Dropdown link
- In the scopes section choose the scopes you want to show up the search drop down, then press Ok to apply changes.
- Now wait until the scheduled update completes and you should see your new search scope among those in the search drop down list.