[Answer]-Sorl multiple sort with RandomSortField

1👍

See this. After adding these to your schema.xml:

<types>
  ...
  <fieldType name="random" class="solr.RandomSortField" />
  ... 
 </types>
 <fields>
  ...
  <dynamicField name="random*" type="random" indexed="true" stored="false"/>
  ...
 </fields>

you can do:

sort=fieldN asc,random_XYZ asc

Keep changing XYZ for different ordering within each group of fieldN.

👤arun

Leave a comment