on 2018 May 15 7:55 PM
I have a project where the client wants the attributes of a classification displayed in specific order for products. This will be on the product results page coming from Solr. Going through the code I am unable to determine if there is anything I can do to define the order of the attributes since the indexed properties are placed in a HashMap. Is there a way to enforce the order? It is already set up in the database but the results page uses Solr. For example I have attributes A1, B2, H6 and X1 and I want it displayed in this order: X1, B2, H6, A1 when I get the data from Solr and display on the page. Thank you!
Hello , did you tried to use the attribute customfacetsortprovider ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can use customfacetsortprovider then implements your custom Comparator according the order you want.
take a look a this help page: https://help.hybris.com/6.7.0/hcd/8ba153f886691014925f989160e5c1a7.html
i hope it's helpful ?
:)
User | Count |
---|---|
25 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.