[ https://issues.apache.org/jira/browse/SOLR-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506267 ]
Hoss Man commented on SOLR-264: ------------------------------- Uhh, guys ... this code violates the contract of Comparator (which is admittedly not an explicit part of the of ScoreDocComparator contract, but it is implied) because: 1) the method isn't stable ... compare(x,y) is not garunteed to have the same sign as a subsequent compare(x,y) 2) it doesn't guarantee that the sign of compare(x,y) is the negation of the sign of compare(y,x) 3) it doesn't guarantee a transitive property ... if ((compare(x, y)>0) && (compare(y, z)>0)) then: compare(x, z)>0. > 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.