Developer forum

Forum » Ecommerce - Standard features » Inactive variant combinations get indexed

Inactive variant combinations get indexed

Anders Ebdrup
Reply

Hi DynamicWeb,

When building the product index, we can configure it to index only active products. However, this setting doesn’t seem to affect inactive variants, which will still be indexed. As a result, it’s possible to select filters that “match” variant combinations that are actually inactive.

Could it be added/changed so that GetVariantCombinations in VariantCombinationService only returns active variants or add another setting on the product index builder that only active variants should be indexed?

Best regards,
Anders


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Currently bugged as https://doc.dynamicweb.dev/documentation/fundamentals/dw10release/releasenotes/workiteminfo.html?workitemid=27471

This fixes the issue - but it is also a change of behavior that could have unwanted side affects - so we might choose another solution.

Currently in code review.

BR Nicolai

Votes for this answer: 1
 
Anders Ebdrup
Reply

Amazing! Thank you for addressing this issue so quickly! :-)

 
Anders Ebdrup
Reply

Hi Nicolai,

I have now tested this on version 10.23.12, and inactive variant combinations are still being indexed.

My expectation was that, when this setting is enabled, the variant data stored on the main products in the index would only include valid/active variant relations. In other words, fields such as "VariantGroup_*" and "VariantCombinations" would only contain variants that are actually active.

The goal is for the facets on the PLP to only display valid options and products.

Perhaps this behavior should be controlled by a separate setting, but that was the outcome I expected from the current one.

Can that be implemented?

 

Best regards, Anders

 

 

You must be logged in to post in the forum