Skip to Content
author's profile photo Former Member
Former Member

Boost Rule not Working Properly

In order to test this functionality, I created a global boost rule where baseProductCode = [my product's code] and the boost factor is 100. What is happening is that my test product is being boosted to the THIRD place in the list. This happened with multiple products that I tested with, and I do not have any hero products defined. I would expect the boosted product to appear FIRST in the list. Can anyone think of reasons that would cause the boosted product to not appear first in the list?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2016 at 01:49 PM

    Hi Lani,

    You can check search query score value by using solrfacetsearch extension:

    1. Set DEBUG logging level for DefaultFacetSearchService class in HAC

    2. Run your search query (get list of products)

    3. In platform log localize statement which contain the following phrase : [DefaultFacetSearchService] Solr Query:

    4. Copy query from statement

    5. Paste to query into solrfacetsearch and remove beginning characters: q=*:* alt text

    6. Execute query

    7. Modify your query by adding pk, score info fl edit box alt text

    8. Execute your query, compare score values. If it is required remove/add more boost rules to achieve your goal

    Best regards, Piotr


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 19, 2015 at 12:38 PM

    Logically this suggests that the products that appear above the boosted product still have a solr score that is higher than the boosted product, therefore the behaviour is still correct.

    For example:

    Product 1 has a solr score of: 1234

    Product 2 has a solr score of: 1123

    Product 3 has a solr score of: 1013

    Product 4 has a solr score of: 987

    A boost rule is applied to Product 4 which adds the factor: 100

    Product 4 now has a total score of: 1087

    This is still less than Product 1 and 2 but higher than Product 3, so Product 4 moves to position 3 in the list:

    Product 1 has a solr score of: 1234

    Product 2 has a solr score of: 1123

    Product 4 has a solr score of: 1087

    Product 3 has a solr score of: 1013

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.