Product Catalog Search Configuration

This topic describes how to configure the SharePoint Search account and how to search the Contoso product catalog. You must edit the settings for the Farm Search Service account and for the Default Content Access account. Configuring search can be quite complex and this topic only covers the essentials. For more information, see Deploy in a simple server farm (Office SharePoint Server), http://technet.microsoft.com/en-us/library/cc262700.aspxConfigure the Office SharePoint Server Search service (Office SharePoint Server), and Plan search (Office SharePoint Server) on TechNet.

Configuring the Farm Search Service Account

The search service runs under the farm service account. In a production farm, you must set this account as a domain account for security. To review the details of setting up accounts, see Plan for administrative and service accounts on TechNet. Because different deployment scenarios can affect the account requirements, review this material before you implement a production deployment. The default settings that are installed by the Partner Portal application will not work because the Local Service account does not have access to the Contoso Product Catalog Business Data Catalog (BDC). You will need to create an account for the search service. This account must belong to the WSS_ADMIN_WPG and Administrators group (for more information, see Office SharePoint Server Search and Windows SharePoint Server Search may not work as expected after you update Office SharePoint Server 2007 Search). Additionally, this account must be added to the local group name ContosoTrustedAccounts. The catalog service will only permit members of the ContosoTrustedAccounts group to access the service. For information about how to change the search serve account, see "To change credentials for the Office SharePoint Server Search service by using the user interface" in Change passwords for the Search service accounts (Search Server 2008) on TechNet.

Configuring the Default Content Access Account

You must specify a default account that has read permissions in order to crawl content. To avoid crawling unpublished versions of documents, it is recommended that this account not have administrative privileges on the target server. For more information, see Plan for administrative and service accounts and Configure default content access account on TechNet. For simplicity, you can use ContosoAppPoolUser (Password: P2ssw0rd$) account credentials with the Partner Portal application, which does not have administrative privileges. Limit the account's access to the content to read-only.

Configuring BDC Search

The default account crawls business data that is exposed through the BDC. For more information, see the section "Create content source for business data" in Configure the Office SharePoint Server Search service on TechNet. In order for search to crawl a business data source that is defined by the BDC, you must implement a specific finder and an IDEnumerator interface. For more information, see MethodInstance in the BDC documentation. The following procedure configures the BDC search for the Partner Portal application.

To configure the BDC search for the Partner Portal

  1. On the taskbar, click Start, point to Administrative Tools, and then click SharePoint 3.0 Central Administration.
  2. In the Quick Launch, click ContosoSSP. The Home page opens.
  3. In the Search area, click Search settings. The Configure Search Settings page appears.
  4. Click Content sources and crawl schedules. The Manage Content Sources page appears.
  5. On the toolbar, click New Content Source. The Add Content Source page appears.
  6. In the Name field, enter ContosoBDCSource.
  7. In the Content Source Type area, select Business Data.
  8. In the Applications area, select Crawl selected applications, and then select the ContosoProductCatalogService check box.
  9. In the Crawl Schedules area, in the Full Crawl drop-down box, click None. In the Incremental Crawl drop-down box, click None.
  10. In the Start Full Crawl area, clear the Start full crawl of this content source check box if it is selected. You will manually start the crawl.
  11. Click OK.

This procedure does not cover every possible way to configure the BDC. For more information, see Walkthrough: Configuring Search for the AdventureWorks Business Data Application on MSDN,

Configuring a Search Scope

Search scopes narrow the search results of a search query. For more information about how to create scopes and scope rules, see Configure the Office SharePoint Server Search service (Office SharePoint Server) on TechNet. The following procedure is for the Partner Portal application. It sets a scope that limits the search to the Contoso product catalog.

To set the search scope

  1. On the taskbar, click Start, point to Administrative Tools, and then click SharePoint 3.0 Central Administration.
  2. In the Quick Launch, click ContosoSSP. The Home page opens.
  3. In the Search area, click Search settings. The Configure Search Settings page appears.
  4. In the Scopes area, click View Scopes. The View Scopes page appears.
  5. On the toolbar, click New Scope. The Create Scope page appears.
  6. In the Title field, enter ContosoBDCScope.
  7. Click OK.
  8. Under Update Status, click Add Rules where it says "Empty - Add Rules" on the newly added scope.
  9. Select the Content Source radio button.
  10. In the Content Source drop-down box, click ContosoBDCSource.
  11. Click OK.

The following procedure updates the scope.

To force the scope to update

  1. On the Central Administration page, click ContosoSSP in the Quick Launch.
  2. In the Search section, click Search settings.
  3. In the Scopes section, click Start update now.
  4. Click View scopes.

After the update completes, you will see the status of the ContosoBDCScope change to Ready.

Crawling the BDC Source

To return results from a search query, you must crawl the BDC source. For information about setting up crawl rules, see Configure the Office SharePoint Server Search service. You can also initiate a manual crawl of the catalog. The following procedure shows how to do this.

To initiate a manual crawl

  1. On the Central Administration page, click ContosoSSP in the Quick Launch.
  2. In the Search section, click Search settings.
  3. Click Content sources and crawl schedules.
  4. Right-click ContosoBDCSource, and then click Start Full Crawl.
  5. Refresh the page, until the status changes from Crawling Full to Idle.
  6. Right-click ContosoBDCSource, and then click View Crawl Log. You should see a list of product pages.

Create a Search Site

To search the BDC, you must create a search site. The following procedure shows how to do this.

To create a search site

  1. Navigate to the Product Catalog site at http://localhost:9001/sites/productcatalog/category.aspx?categoryid=0.
  2. Click the Site Action tab, and then click Create.
  3. Under Web Pages, click Sites and Workspaces.
  4. In the Title text box, type Contoso Search Center.
  5. In the URL name text box, type Search.
  6. Under Select a template, click the Enterprise tab, and then click Search Center.
  7. Click Create.

After the Contoso Search Center is created, you can type X-Ray in the search box, and start the search. You should see one result that is named Product.aspx. Click the result link. It should open the page located at http://localhost:9001/sites/ProductCatalog/Product.aspx?sku=6000000000.

More Information

For more information about searching the BDC, see Searching Business Data on MSDN. Also see Configure the Office SharePoint Server Search service and SharePoint 2007: BDC - Enabling Search on business data on the Winsmarts.com site.


Home page on MSDN | Community site

Show: