I know multivalued field sorting is not supported in Solr . But Is there any way we can sort multivalued field in Solr. I have two documents with field custom_code and values are as below,
Doc 1 : 11, 78, 45, 22
Doc 2 : 56, 74, 62, 10
When I sort it in ascending order the order should be ,
Doc 2 : 56, 74, 62, 10
Doc 1 : 11, 78, 45, 22
Here Doc 2 will come first because it has smallest element 10 (which is greater that 11 of doc 1).
How can we achieve this in Solr. What is the easiest way?