Skip to Content
Former Member
May 15, 2018 at 06:55 PM

Order of classification attributes retrieved from Solr


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!