Skip to main content

Hello everyone, I am trying to create a new refinement based on a date attribute.

To achieve it I created the refinement:Using refinement dateThem I did a rebuild for all indexes, after that If I search for a product document I can see the field is indexed:index-document.pngBut it is not bringing filter values for this option in frontend.

I also tried call it direct from code:

allRefinements.getAllRefinementValues('creationDate');

But it brings a empty collection.

If I call:

allRefinements.getAllRefinementValues('brand');

I am able to get results.

 

I tried it with multiple date fields, but always same result.

If I create a refinement with any other field like String or Boolean it works fine, the problem is just with Date attributes.

Is there any extra step that I need to do when creating a refinement based on a date attribute?

 

PS: For all date attributes that I tried to use, the values are filled in the product, so the problems is not because product attribute is empty.

 

Thanks a lot in advance!

 

8 respostas
  1. 13 de dez. de 2023, 14:15

    So just to finish this thread, in fact it is not possible filter products where the value is not filled (I got a salesforce team confirmation). 

0/9000