A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Configuring search ranking of products

agl
agl
Vote:
 

Hello

In our webshop we would like to configure ranking of products within Optimizely Search & Navigation.

Just to be clear about terminology and use case:

  • By ranking we mean a calculated number that determines the order of products in a search. In our case, we calculate this from different factors such as product data from PIM(Product Information Management), stock, seasonality and potentially market-specific adjustments.
  • We do not mean boosting, in the campaign or promotional sense, where products are manually pushed higher or lower for marketing purposes.

Our questions are:

  • Is there a way in Optimizely find to configure this? Now we simply calculate it and perform an orderByDescending when a search is performed.
  • Is there documentation that describes how Search & Navigation consumes a predefined ranking score versus relying on its default algorithm?
#339939
Aug 12, 2025 12:49
Vote:
 

I am not sure if you already do this. But here is my suggestion.

If you calculate the ranking in PIM, you could store that ranking score as a property on the catalog entries. Then you can order the results by that property.

If you don't call an order method then S&N will use calculated relevance. And that can primarily be manipulated by boosting and applying synonyms.

#339993
Aug 17, 2025 8:12
Vote:
 

What you can probably "improve" on what you're already doing is to add an extension method to your product model, something like this

public static decimal SearchRanking(this ProductModelContent content)

{

//return your calculation

}

and you don't have to calculate it every time you search. 

#340028
Aug 22, 2025 9:44
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.