Product Catalog Search

Catalog search is always available to the left of the main page. There are three types of search: full-text search, advanced search, and wildcard search. The search results are displayed in the main area and users can also control which catalogs are searched. The wildcard search enables you to perform wildcard searches when doing a full-text search. To perform a wildcard search, the full-text search phrase must end with an asterisk (*).

For example, the following code demonstrates how to write a wildcard search that returns all the rows beginning with “book”. Notice the asterisk after “book”.

sqlClause = “”

freetextSearchPhrase = “book*”

catalogsToSearch = “MyCatalog”

oCatalogManager.Search(sqlClause, freetextSearchPhrase,catalogsToSearch)

The Search control provides a basic full-text search of the current catalog set when the user click the Search link on the page. It also displays a link to the AdvancedSearch control.

When the user clicks the Advanced Search link on the page, the AdvancedSearch control appears in the main display area. The AdvancedSearch control allows users to more readily define the parameters for their search. Users can search with multiple terms using the logical AND and OR operators. With advanced search capabilities, users can also control how many items to return on the results page.

Copyright © 2005 Microsoft Corporation.
All rights reserved.