Spelling Suggestions

As implemented in the SiteGenesis application, when a search query yields no results, Salesforce B2C Commerce checks the search query to detect misspellings that could cause empty search results.

When an alternate spelling is identified, depending on the search preferences configured, it does one of the following:

Note: See the table at the end of Setting Search Preferences.

The auto spell feature, enabled by a preference, is based on a dictionary that is part of the standard product index. This feature is used by search suggestions and Did You Mean to perform the spell check before showing search results.

Product changes and a subsequent product index rebuild within Business Manager updates the spell checking dictionaries.

Spelling Suggestions and Stop Words

You can use stop words to prevent specific words from being suggested. For example, if a search for "Hello Kitty" produces the suggestion "Hello City", adding "city" as a stop word prevents the suggestion. After defining a new stop word, you must rebuild the spelling suggestion index for the stop word to be used by B2C Commerce.

Spelling Suggestion Examples

The B2C Commerce search suggestion feature provides the following results in the SiteGenesis application when all search suggest and auto spell features are enabled:

If Customer Searches For... B2C Commerce Returns Example
telewision One suggestion television
visio telewision One (best match)

vizio television

"visio telewision" Only the quoted phrase No search results page

Telewision

Lower case spelling correction, unless the entry is a brand name

Did you mean: television?

Visio

If a brand name is detected, it is corrected to its case-sensitive version. Did you mean to search for: vizio

No Results Found Page

When a storefront search query yields no results, Salesforce B2C Commerce checks the query for misspellings that could cause empty search results. When an alternate spelling is identified (depending on the search preferences configured), it shows the message:

"We're sorry, no products were found for your search: [search term] did you mean: [alternative term] ?".

The customers can click the suggested spelling to launch a new search for that term.

Note: To avoid invalid Did You Mean suggestions, B2C Commerce evaluates corrected and completed search terms for their probability within the current search context.

You can customize your application to perform more merchandizing on the no results found page by suggesting substitute products. Consider including a search box with searching tips or a high-level site map, category listing, or key page links on this page. Doing this ensures that the page isn't a dead end for the customer.

Salesforce recommends that you use the spelling suggestions feature to prevent customers from getting a no results page if they have misspelled a search term.

Related Links

Search Suggestions