Set Up Search Suggestions

To enhance the search experience in your B2B store, configure the Search Suggestions section in the Search Box component. You can use the Search Box component to provide search term and product suggestions to your buyers, including recent suggestions and bestselling products.

Required Editions

View supported editions.

Which Salesforce Commerce Product Do I Have?

Prerequisites

  1. In the navigation sidebar, select a store from the Store dropdown.
  2. Click Experience Builder.
  3. In Experience Builder, add the Header - Split Spacing component to the Header section of the page.
  4. In the Header - Split Spacing component, select the Search Box component.
  5. In the Search Box component, on the Settings tab, in the Search Suggestions section, configure these options.
    1. Select Enable Term Suggestions.
    2. Select Enable product and category suggestions.
    3. (Optional) Enter custom header text for term suggestions, recent search, product suggestions, and bestsellers.
    4. To configure bestselling products, create a category called "Bestseller," assign bestseller products to it, and then enter the category ID in the Bestseller Category ID field. See Create Product Categories and Subcategories in a Commerce Store.
    Configure search suggestions.
  6. Publish your store.
  7. Rebuild the index.
    Rebuilding the index makes sure that the suggested products and product images that appear below the search bar match the products on the Product List Page. Regularly rebuilding the index is also important after product updates. See Enable Displayable Fields in Commerce (Beta).