on 2018 Sep 03 10:12 PM
I have two fields in solr that I want to use for sorting results.
INSERT_UPDATE SolrIndexedProperty; solrIndexedType(identifier)[unique = true]; name[unique = true]; type(code); ; $solrIndexedType ; name ; string ; ; $solrIndexedType ; searchCounter ; long ;
My requirement is:
present the 5 most-searched (searchCounter) documents and below present the rest of the results in alphabetical order (name) (if there are same values in 'searchCounter' field we should sort by 'name')
if all have the same value in the 'searchCounter' field, sort only by 'name'
How should I deal with that?
Request clarification before answering.
| User | Count |
|---|---|
| 2 | |
| 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.