Boosting

Boost products based on certain criteria while still maintaining relevancy to the user's query

ParamBoosting behaviourExample
boostsBoosting products based on predefined formula, provide these type & weight: boosts=type:weight

boosts=freshness:1 means you are boosting newly launched products by 100% based on the catalog field onsale_date

boosts=discount:0.12 means you are boosting discounted products by 12% based on the catalog field original_price - price

boosts=rating:0.99 means you are boosting highly rated products by 99% based on the catalog field rating

boosts=image_category_consistency:1 means you are boosting products with same main image category as the given image query by 100%


📘

Note

  • weights must be between the range of 0 ~ 1 and are truncated to 2 decimal places.
  • the effect of boosting is capped relatively to the similarity score of the query.