Configure MOSS to search a specific document library

原文链接:http://paulgalvin.spaces.live.com/Blog/cns!1CC1EDB3DAA9B8AA!264.entry

 

Objective: I want to execute a search restricted to a specific document library.  In this case, the document library contains training documents.

Steps:

1. Record the URL of the document library.

2. Create a scope:

Go to central administration.

Access the SSP.

Go to "Search Settings".

Scroll down to the scope section and select "View Scopes".

Create a new scope.  Give it a name and useful description.

3. Define scope crawl rules:

Add a rule that defines the document library for this scope.

Select "web address" for "Scope Rule Type".

Enter the name of your folder (see #1 above).

Accept the default value of "Include".

Wait for the scope to update (or start it manually).

4. Enable the scope in a site collection.

Go to site collection where you want to use this scope.

Add your new scope to the appropriate display group or groups.

5. Search!

At this point, you're done.  Assuming the scope is properly defined, it will be available in the scopes drop downs for simple and advanced searches and when you search using that scope, you'll just get results you expect.

Notes:

I wrote this blog entry because my searches for simple scope setup turned up dry using phrases like:

  • configure scopes in MOSS
  • configure search scope moss
  • scopes in sharepoint 2007
  • scopes in sharepoint
  • search a document library moss
  • scopes primer moss

You can create a search scope on a folder, not just the entire document library. 

A scope can be shared across multiple site collections (hence, a "shared service").

You can create the scope at the site collection level itself.  However, I prefer to go to central admin because I can start the crawl from there.  You cannot start the crawl from the site collection.

 

posted on 2009-07-07 17:54  王丹小筑  阅读(202)  评论(0)    收藏  举报

导航