Developer forum

Forum » Development » How to handle facets and language

How to handle facets and language

Kim Søjborg Pedersen
Reply

Hi, I have an multi language ecommerce using repositories running on DW 8.7.2.13. On the productlist I handle the language context with the Query expression "Language ID - Match Any - Dynamicweb.Ecommerce.Context:LanguageID" and that works as expected. But when I set the checkbox "Show facet options with no results" I got all facets out including the ones from other languages. How can I change this?

 


Replies

 
Nicolai Høeg Pedersen
Reply

The LanguageID should be an Equal.

You cannot change this as I see. When you set that checkbox you ask for all values whatsoever...

Only way to solve that would be having different indexes for different languages. That is currently not possible, but we could make it possible...

BR Nicolai

 
Kim Søjborg Pedersen
Reply

thanks to clear this out, unfortunately it's bad news for me and I can not quite see why/when it makes sense to mix languages

 
Nicolai Høeg Pedersen
Reply

Setting the checkbox is the same as saying that all the search parameters should be disregarded. And since it is just a computer it cannot tell the difference between Danish and English names.

Can you explain why you need the checkbox set - there might be other ways of solving this.

BR Nicolai

 
Kim Søjborg Pedersen
Reply

Yes let's say we have a facet for filtering brand and that value is indexed from a string field on the product. I want the customer to see all of my brands at all time and to prevent them for picking a facets that would result in at "no result" I just make them disabled so they can still see them. Like that the customer is aware that we in the shop have all those brands, but because of the context - deeplink, language or other, some of the brand facets can't be picked right now and therefore it is disabled or just visualized with a (0) after.

If we can work around this or do this "out of the box" on a multi language solution, we can delete a lot of custom code and making it easier to go forward with additional solutions.

Regards.
Kim

 

You must be logged in to post in the forum