Developer forum

Forum » Ecommerce - Standard features » 2 virtually equal variants with different scores

2 virtually equal variants with different scores

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

I have an odd issue that I cannot explain and would appreciate some help.

  • Going to https://www.biolegend.com/
  • Searching for "spark blue"
  • Some variants get a different _score value, which causes results to become mixed up, and I can't explain it.

 

Notes:

  • The template is doing some markup magic when the previous loop item is from the same product id
    (important takeaway is that it's a basic foreach loop)
  • The variants only have a different product number, price and stock amount (and autoid of course)
  • There are multiple sort criteria, but _score comes first, and I've validated it by using the Query Publisher App
  • I looked at the query and fields associated with the free text search
    (product number is used as "equal", but it's number numbers, and we're searching for "words")

 

Any thoughts on that? Any idea on how I can fix this?

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen
Reply

You can download the source code of Lucene and start debugging .... :-)

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Well... that a nice way to say you have the same clue as me :)

 

I'm screwed then. I'll have to get very creative to get this fixed for this customer (:facepalm)

 

You must be logged in to post in the forum