In Solr, Whats the best approach to order results by random?, basically needs to pick some records at random.
In latest Solr, nothing need to do with schema. Just add below sorting and it will give random result set.
... ... //Below is to get rendom string $randString = mt_rand(); $query->addSort('random_'.$randString, $query::SORT_DESC); ... ...