cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to customize BoostSearchQueryPopulator

former_member708417
Participant
0 Likes
308

Hi,

I want to customize BoostSearchQueryPopulator, which will allow to boost only 200 products. As in this class we have maxHeroProductBoost, i just want to override that to increase the value.

Please let me know the steps.

Accepted Solutions (0)

Answers (1)

Answers (1)

sapnam
Explorer
0 Likes

Hi SMK, If I understand your question correctly, you need to update the property maxBoostFactorValue of BoostRuleValidator defined in commercesearch-spring.xml; maxHeroProductBoost is for Hero Products which appear before any of the other boosted products(boosted using a boost rule). You may be aware that the sum of all boost factors from different boost rules should not exceed 5000. If this threshold is exceeded and the product is later promoted to the Hero product status next to another Hero product without boosts, the order of the Hero products may be incorrect. The reason for this possible incorrectness is that 5000 is also the default boost factor used to position Hero products above one another. Hope this helps!

Cheers, Sapna