Promoting products
When a priority rule uses descending direction, it promotes matching products to the top of results. Priority rules are always applied first as hard overrides, so promoted products appear at the top regardless of their position in the expression list. Example: Promote Nike products- All Nike products appear first (regardless of sales)
- Within Nike products, sorted by sales
- Non-Nike products appear after, sorted by sales
Promoting multiple values
When usingin or notIn operators, you can specify multiple values in a single priority rule. This is available in the UI when you select these operators, which enable multi-select functionality.
Example: Promote multiple brands
- All Nike, Adidas, and Puma products appear first
- Within promoted brands, sorted by sales
- Other brands appear after, sorted by sales
- Products with any of the specified tags appear first
- Within tagged products, sorted by price
- Untagged products appear after, sorted by price
- Products priced outside 200 appear first, sorted by sales
- Products priced between 200 appear at the bottom
- Products on sale (with compare-at price) appear first, sorted by discount
- Regular-priced products appear after
Demoting products
When a priority rule uses ascending direction, it demotes matching products to the bottom of results. Priority rules are always applied first as hard overrides, so demoted products are pushed to the bottom regardless of their position in the expression list. Example: Demote out-of-stock products- In-stock products appear first, sorted by sales
- Out-of-stock products appear at the bottom
Soft demotion examples
Example: Soft demote clearance items in search- Clearance items above the 0.6 threshold are immune to demotion and maintain their relevance-based position
- Clearance items below the 0.6 threshold receive proportional demotion based on how far below the threshold they are
- Non-clearance items maintain their relevance-based ranking
- “Budget Brand” products above the 0.5 threshold are immune to demotion and maintain their relevance position
- “Budget Brand” products below the 0.5 threshold receive proportional demotion
- Non-”Budget Brand” products maintain their relevance-based ranking
Multiple priority rules
You can combine multiple priority rules to create sophisticated ranking logic: Example: Promote featured, demote out-of-stock- Featured products appear first (promoted)
- Regular in-stock products in the middle, sorted by sales
- Out-of-stock products at the bottom (demoted)
Priority rules with limit
Priority rules support alimit parameter to control how many matching products are promoted or demoted:
Example: Promote top 5 new arrivals
- Top 5 newest products appear first
- Remaining products sorted by sales (including other new products beyond the limit)