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

Custom Solr sort

0 Likes
628

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?

Accepted Solutions (0)

Answers (0)