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

Sort by relevance in plp

former_member704915
Participant
0 Likes
956

Sort by relevance works on the score. Can we change it to any other parameter( like color) ? If yes, how to do so?

Accepted Solutions (0)

Answers (1)

Answers (1)

a_e_dubey
Active Participant
0 Likes

, you can change whatever you wanted to use like color, score is actually a count which is generated by solr for each document for its relevancy i.e exact match first and then.

So either you can change from backoffice or using below impex. Also you can add multiple field for this as well. like below

 INSERT_UPDATE SolrSortField;sort(indexedType(identifier),code)[unique=true];fieldName[unique=true];ascending[unique=true]
 ;$solrIndexedType:relevance;inStockFlag;false
 ;$solrIndexedType:relevance;score;false
 ;$solrIndexedType:relevance;color;false

Hope this will help you.

a_e_dubey
Active Participant
0 Likes

Does this help you? Pls accept if helped.