Hi,
we want to add image to a facet based on a ClassificationAttribute.
So if we search for jackets and have "Gender" as ClassificationAttribute, we want to see a face-image of the corresponding text "male" or "female" in the facet-summary on searchResultPage.
How is it possible to merge two facets for this scenario? We could index "gender" and get the grouped ones with "female" and the grouped ones with "female-image".
One mighty solution would be to seperate a concatenated String like "facet.getName()=facetName+imageUrl" in SearchResponseFacetsPopulator.buildFacets(...)
But where could the join of both happen? In the CommerceClassificationPropertyValueProvider ?
First approach whould be the prefered one, but if anybody has an idea for the workarround under 2 you will be welcome too ;)
Greatings David