Configure Searchable Attributes

When a search query is entered, 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.

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.

  1. Select site > Merchant Tools > Search > Searchable Attributes
  2. On the Searchable Attributes page, within either the Product Index Attributes or the Content Index Attributes section, click New .
  3. Expand the highlighted field.
    Only attributes with appropriate data types for search appear.
  4. Select an attribute.
  5. Click the Boost Factor field and enter a boost factor if you want 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 could enter 2.00 and the attribute would be twice as important as attributes with the default value of 1.00. You can use decimals as boost factors.

    A boost of:

    • .01-.99 reduces the impact in the search results.
    • 1.00 is the default and does not 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 is not yet applied.

  6. Select Auto-correction, Yes (default) or No.

    By default, all searchable attribute values are subject to auto-correction (spell checking) and auto-completion. If, for example, a searchable attribute Color is enabled for auto-correction, all the color names are corrected and completed. This behavior might 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.

    Note: Autocorrection is set to No by default for HTML type searchable attributes.

    When you select:

    • Yes, the attribute is included in auto-correction.
    • No, the attribute values are excluded from auto-correction, while they are still searchable.
  7. Click Apply.
    The red triangles in the attribute disappear.
  8. Rebuild the Product or Content Index, depending on the attributes you added.