[ https://issues.apache.org/jira/browse/SOLR-264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan McKinley updated SOLR-264: ------------------------------- Attachment: RandomSortField.java wow. Here is an updated version that uses the field name hash for the seed. I added a few comments and I have seen it run and give random results. It gets configured with: <dynamicField name="rand*" type="random" indexed="true" stored="false"/> then you get nicely repeatably random results for: * http://localhost:8983/solr/select/?q=*:*&fl=name&sort=rand_1234%20desc * http://localhost:8983/solr/select/?q=*:*&fl=name&sort=rand_2345%20desc * http://localhost:8983/solr/select/?q=*:*&fl=name&sort=rand_ABDC%20desc * http://localhost:8983/solr/select/?q=*:*&fl=name&sort=rand_21%20desc thanks yonik! > 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: RandomSortField.java, RandomSortField.java, > RandomSortField.java, 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.