Search and Navigation Implementation Considerations

Guidelines and requirements you may want to consider as you implement search and navigation throughout your storefront.

Requirements Phase

Identify how many types of search are required for the solution. For example, do you want different behavior or presentation for different categories: top sellers versus clearance items or for content assets versus products?

Paging logic:

Sorting and ranking logic:

Indexing attributes:

Maintaining indexes:

If the merchant plans to import search index definitions, define the import process. If possible, implement it as a job within Salesforce B2C Commerce, so that you can take advantage of the scheduling and notification functionality built into B2C Commerce. If you intend to perform regular index updates, these can also be scheduled in Business Manager.

Design Phase

Operational Overhead

During the design phase, merchants should consider the day-to-day operational overhead associated with creating and maintaining search indexes manually within B2C Commerce, especially merchants with large product catalogs. This process includes examining current customer searches, identifying needed changes, configuring dictionaries and indexes, and manually building and replicating indexes.

Build Phase

Build code to support search requirements.

Development/Test Phase

To facilitate development and testing, you must:

Best Practices

Salesforce recommends the following best practices:

Performance Recommendations

If you have a large catalog of products and you want to improve the speed of search, try to make the size of your indexes smaller. You can see the size of an index after it's built on the Search >Search Indexes page. Usually, the number of attributes being indexed is what determines index size. You can also add stop words to decrease the size of the index.

However, if you decrease the number of searchable attributes, this means that the search results might be less accurate.

If you have an average size catalog of products, decreasing index size isn't normally a concern.

Testing Recommendations

We recommend testing the top 50–100 searches on your site as a baseline to make sure that the search results are returned in the order that you prefer.

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.