cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to create facet for an product attribute of type Enum

Former Member
0 Kudos
420

How to create facet for an product attribute of type Enum.?

Accepted Solutions (1)

Accepted Solutions (1)

former_member634058
Active Participant
0 Kudos

The facet you create can be of type text or string. The facet name does not depend on the product attribute until you are not using springELValurProvider. Write a custom value provider to populate the facet attribute with the product attribute enum code. For displaying as a facet on storefront, write a displayname provider where you return the localized name of the enum based on the code string returned from solr.

Hope this helps.

Former Member
0 Kudos

Thanks . It worked .

Answers (0)