Cert++
Close

Refinements versus sorting rules versus searchable attributes

Key Takeaway

Searchable attributes decide what a keyword search finds, search refinements narrow the results, and sorting rules set their order. To let shoppers re-sort results by an attribute, create a sorting rule on that attribute and add it as a storefront sorting option.

B2C Commerce has three separate settings that shape what shoppers see when they search, and each one answers a different question. Searchable attributes decide which product or content data a keyword search looks at, so they decide which products a search finds. Search refinements let shoppers narrow that result set by values like color or price. Sorting rules decide the order the results are shown in. To match a business requirement to the right setting, ask which of these three questions the requirement is about.

Searchable attributes

When a shopper enters a search term, only product or content attributes configured as searchable attributes are searched. If the term appears only in an attribute that isn't searchable, the product isn't returned.

A camera shop stores brand and model number as product attributes, but they aren't searchable attributes yet. A shopper types "LX-200" into the search box and gets no results for that camera. The merchant makes brand and model number searchable attributes and rebuilds the product index. Now the same search returns the camera.

Keep searchable attributes to the minimum needed for customer searches, because they add a lot to index size. Index size affects search speed.

Boost factorEffect
1.00 (default)Doesn't change the order
.01–.99Reduces the attribute's impact
1.01–100.00Increases the attribute's impact

For example, a product name boost of 2.00 makes product name twice as important as attributes at 1.00. Salesforce recommends boosts of 5.00 or less.

The "Auto-correction" setting on a searchable attribute defaults to No. With No, the values stay searchable but are left out of spell checking and auto-completion. Yes is a poor fit for values like product ID, because shoppers who search by product ID expect one specific product page, not a product with a similar ID.

B2C Commerce Developer Study Guide

Checklist progress

0/237Learned

Given a business requirement, create and configure a new search refinement and sorting definition that can be used on the storefront

0/9

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other B2C Commerce Developer studiers.