[ https://issues.apache.org/jira/browse/SOLR-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506284 ]
Hoss Man commented on SOLR-264: ------------------------------- the only clean way to do this that i know of i to build aFieldCache-esque rray of size maxDoc, put a random number of each doc into that array, and then use that array to get the sortValue ... document order is randomized, but consistent for all uses of the same array (if you leverage the FieldCache custom type, that means its' consistent per IndexReader) this was brought up recently on java-user, after i suggested an alternative approach of just promoting N randomly selected docs to the front of the results (where N is greater then your expected pagination... http://www.nabble.com/Several-questions-about-scoring-sorting-%2B-random-sorting-in-an-image-related-application-tf3928435.html#a11141191 > Support 'random' sort order > --------------------------- > > Key: SOLR-264 > URL: https://issues.apache.org/jira/browse/SOLR-264 > Project: Solr > Issue Type: New Feature > Reporter: Ryan McKinley > Priority: Minor > Attachments: SOLR-264-RandomSortOrder.patch, > SOLR-264-RandomSortOrder.patch, SOLR-264-RandomSortOrder.patch > > > Support querying for random documents: > http://localhost:8983/solr/select/?q=*:*&fl=sku&sort=random%20desc -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.