Before creating search refinements, if you're refining by attribute values, make sure that the attribute has data and is indexed. To create search refinements for the keyword search, create them for the root category for the B2C Commerce storefront catalog.
The pipe character "|" is reserved and can't be used as a search refinement attribute value.
-
Click App Launcher
, and then navigate to .
- On the Category Page Search Refinement Definitions tab, click New.
- Configure the search refinement fields and click Apply.
-
If you selected a Bucket Type of Values, an Attribute
Refinement Buckets section of the page appears.
Create search refinement buckets that appear in the storefront.
- Click Manage Values.
-
On the Manage Bucketed and Unbucketed Search Values Window page, select the
values you want to add to a search bucket.
Filter the list of values by value name or bucket.
- Select the buckets you want to assign the checked values to.
- Click Apply.
-
Click App Launcher
, and then navigate to , and rebuild your product or content search index.
When the index is rebuilt, the search refinement is visible in the storefront.
Block Search Refinements
It's possible to include refinements for broad categories in B2C Commerce that are blocked for subcategories. If a customer navigates to the subcategory without selecting the blocked refinement, the blocked refinement isn't visible in the subcategory.
However, if a customer selects a refinement and then navigates to a subcategory where the refinement is blocked, the refinement is still shown, so that the customer can still relax the refinement.
-
Click App Launcher
, and then go to .
- Navigate the catalog until you see the category that you want to block a refinement for and click Edit.
- Click theSearch Refinement Definitions tab.
-
On the Search Refinement Definitions tab, in the row of the refinement you want to
block, click Block.
The blocked refinement is applied immediately.