---
schema_version: "1"
id: 522cbee795d61bf7a6160cb319ed5f543f073edc35a0120bbd275cf2c68a8c5f
title: Boost and Bury Rules for B2C Commerce
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_boost_and_bury_rules.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_boost_and_bury_rules.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3d5c97f7746abefda5fea1fe7eaa1676033b15000104e35fa1a36e4a240bd93b
description: Boost and bury rules influence product ranking in search keyword and category results while preserving standard relevance and sorting logic. Use boost and bury rules to promote seasonal or high-margin products, deemphasize products that you don't want to dominate results, and apply targeted merchandising logic for specific search terms or categories.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Boost and Bury Rules for B2C Commerce

Boost and bury rules influence product ranking in search keyword and category results while preserving standard relevance and sorting logic. Use boost and bury rules to promote seasonal or high-margin products, deemphasize products that you don't want to dominate results, and apply targeted merchandising logic for specific search terms or categories.

Boost and bury rules add a merchandising layer on top of standard ranking. The rules adjust product scores before final sorting to promote or deprioritize strategic products without hard overrides.

## How Boost and Bury Rules Work

The rule defines the products to target, the context in which the rule applies, and how strongly to adjust the ranking. A boost and bury rule has these components.

- **Rule definition:** Specify the boost or bury behavior, the factor value, and if the rule is active.
    - A factor adjustment modifies the ranking, not absolute search position. A product must still be relevant to appear in the search results. Buried products are deprioritized but not removed from the search results.
- **Targets:** Identify which products the rule impacts, using criteria like prodict IDs, attributes, or attribute combinations.
    
    Targets are evaluated independently of search terms and cached to avoid increasing query times.
- **Qualifiers:** Define when the rule applies for a search term or category. Rules without qualifiers apply site-wide.

## Boost and Bury Rules and Sort Rules

Boost and bury rules work with the existing sort rules, rather than replace them.

When boost or bury rule is active, it influences ranking by modifying the values of the text\_relevance and category\_position sort attributes. All other sort attributes remain unchanged. This table describes how boost and bury rules influence the text\_relevance and category\_position sort attributes.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d185630e84">Sort Attribute</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d185630e87">How the Attribute is Adjusted</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Sort Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d185630e84 ">text_relevance</td>

            <td data-label="How the Attribute is Adjusted" class="slds-cell-wrap" style="vertical-align:top;" headers="d185630e87 ">
              <p>For search experiences:</p>
              <ul>
                <li>Boosted products receive a higher relevance score.</li>

                <li>Buried products receive a lower relevance score.</li>

                <li>Sorting then proceeds normally by using the adjusted values.</li>

              </ul>
              <p style="margin-bottom:0;">This approach lets boosted products to compete fairly based on how relevant the
                products are to the search term.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Sort Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d185630e84 ">category_position</td>

            <td data-label="How the Attribute is Adjusted" class="slds-cell-wrap" style="vertical-align:top;" headers="d185630e87 ">
              <p>For category experiences, the attribute is modified only when the shopper is
                viewing a category in these ways:</p>
              <ul>
                <li>Direct navigation to a category page.</li>

                <li>Category results reached via search.</li>

              </ul>
              <p>If the shopper isn't in a category context, the category_position attribute
                isn't affected.</p>
              <p>This approach prevents category merchandising rules from
                unintentionally impacting pure keyword searches.</p>
              <p style="margin-bottom:0;">Boosting products without a
                category position doesn’t push down products that have a category position.
                Products with a category position are sorted before products that don’t have a
                category position. A boost rule acts as a tie-breaker only between products that
                share position value.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Supported Operators and Data Types

You can use these date types: string, boolean, integer, number, date, and date-time. See [Supported Data Types for Search and Sorting Rules](https://help.salesforce.com/s/articleView?id=cc.b2c_supported_data_types_for_search_and_sorting_rules.htm&type=5&language=en_US). Boost and bury rules support these operators:

- Equals
- Contains
- Is defined
- Is not defined
- Does not equal
- Starts with
- Greater than
- Less than

If you're using an active data attribute, the rule can't include the `contains` and `start with` operators.

## Boost and Bury Rule Precedence

If multiple rules apply to a product, the system selects one rule based on scope in this order of precedence.

- Search term scope (most specific)
- Category scope (subcategories don’t inherit rules from their parent categories)
- Site-wide scope (least specific)

If multiple rules of the same specificity match a product, the most recently created rule takes precedence.

## Condition Logic

The ANY or ALL conditions affect the results of the targeted products. For example, both of these rules target the category Mens Shoes. The first rule boosts only men’s blue sneakers. The second rule boosts blue sneakers and slip-on sneakers.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_example.png)

Example

Target: Mens | Clothing | Shoes

Rule Name: Boost Blue Sneakers

ALL Conditions:

Attribute: Refinement Color, Operator: Equals, Value: blue

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_example.png)

Example

Target: Mens | Clothing | Shoes

Rule Name: Boost Sneakers

ANY Conditions:

Attribute: Refinement Color, Operator: Equals, Value: blue

Attribute: Refinement Type, Operator: Equals, Value: slip-on

- **[Prepare Attributes for Boost and Bury Rules](https://help.salesforce.com/s/articleView?id=cc.b2c_enable_boost_and_bury.htm&release=264.0.0&type=5)**  
    Prepare your B2C site to create boost and bury rules in Visual Merchandising.
- **[Create a Boost or Bury Rule](https://help.salesforce.com/s/articleView?id=cc.b2c_create_boost_and_bury_rules.htm&release=264.0.0&type=5)**  
    Create a rule that boosts or buries matching products in your B2C Commerce storefront for a search term, a category, or site-wide context.
- **[Import Boost and Bury Rules](https://help.salesforce.com/s/articleView?id=cc.b2c_import_boost_and_bury_rules.htm&release=264.0.0&type=5)**  
    Use search import and export to create, update, or replace boost and bury rules in bulk on your B2C Commerce storefront.

#### See Also

- [Visual Merchandising for B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c_visual_merchandising.htm&language=en_US)