Configure Searchable Attributes
When a search query is entered in B2C Commerce, only product or content attributes that are configured as searchable attributes are searched, and only products or content assets that contain the search term in a searchable attribute are returned in search results. If the searched term is contained in an attribute that isn't a searchable attribute, the product isn't returned in the search results.
Required Editions
| Available in: B2C Commerce |
As a best practice, confine your searchable attributes to the minimum number necessary for customer searches. Searchable attributes contribute greatly to the size of indexes, which affect the speed of your search.
Searchable attributes you select have no effect on the attributes selected for search refinement or sorting rules. However, the boost factor that you select for a searchable attribute affects the sort order if you create a sorting rule that uses text relevance as a sorting criterion.
- Select site | Merchant Tools | Search | Searchable Attributes
- On the Searchable Attributes page, within either the Product Index Attributes or the Content Index Attributes section, click New.
-
Expand the highlighted field.
Only attributes with appropriate data types for search appear.
- Select an attribute.
-
Click the Boost Factor field and enter a boost factor to increase or
decrease the importance of the attribute to the search results.
For example, if you want the product name to be more important than the description you can enter 2.00 and the attribute is twice as important as attributes with the default value of 1.00. Use decimals as boost factors.
A boost of:
- .01-.99 reduces the impact in the search results.
- 1.00 is the default and doesn’t change the order of default search results.
- 1.01–100.00 increases the importance of the field in search results.
Salesforce B2C Commerce recommends boosts less than or equal to 5.00.
The new attribute appears in the dialog with red triangles in each field, indicating that your change isn’t yet applied.
-
Select Auto-correction, No (default) or
Yes.
(Available in the 24.4 release) By default, all searchable attribute values are not subject to auto-correction (spell checking) and auto-completion. When you add a new searchable attribute, the auto-correction attribute is set to No.
When you select:
- No, the attribute values are excluded from auto-correction, while they’re still searchable.
-
Yes, the attribute is included in auto-correction. The
Attribute value is subject to auto-correction (spell checking) and
auto-completion. For example, if a searchable attribute
Coloris enabled for auto-correction, all the color names are corrected and completed. This behavior can be inappropriate for certain attributes such as product ID, since customers are expecting a specific product detail page, not a different product that has a similar ID. In addition, the auto-correction dictionary increases in size over time and can cause additiona search noise.
-
Click Apply.
The red triangles in the attribute disappear.
- Rebuild the Product or Content Index, depending on the attributes you added.

