on ‎2019 Apr 04 9:19 AM
Sort by relevance works on the score. Can we change it to any other parameter( like color) ? If yes, how to do so?
Request clarification before answering.
, 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 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.