Developer forum

Forum » Ecommerce - Standard features » Facets with Numbers

Facets with Numbers

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Guys,

I have a situation where I have some facets and the facet options are numbers.

They seem to be indexed properly, the facets show the options correctly, but the filter is not applied.

I have defined the fields as system.string[] and the condition in the query is "Match Any"

Anybody had a similar problem? I have to mention that all of the other facets and options work properly.

I am using DW 8.9.2.5

Thanks,

Adrian


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Guys,

I have found the issue.

If you define an index, a quesry with arameters and some facet definitions and then assign them to the ProductCatalog module, everything works fine.

However, if you define a new set of facets after a while , and assign them to the facets in the Product Catalog module, even if the facets will show correctly in the front-end, the parameters of the query are not updated in the productCatalog definition and therefore the filters will not apply.

The workaround would be to change the quesry, save the product catalog, then go back, chnage the query back to the correct one and add the facets.

Internally, the code name for this operation is "slapping the Index".

I hope it helps.

Thanks,

Adrian 

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

"Slapping the index" sounds like a great technical term :) I can easilly apply it to a few other things :P

 

You must be logged in to post in the forum