[ 
https://issues.apache.org/jira/browse/SOLR-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506273
 ] 

Yonik Seeley commented on SOLR-264:
-----------------------------------

Yeah, I briefly thought of that... but decided it might be OK (won't cause an 
infinite loop) since sorting is done via a priority queue.

But thinking on this further, it still has a lot of problems besides a single 
query:
 - caching... oops, there goes your randomness
 - code that needs to query more than once (first pass gets "n" docs, then 
requests more)


> 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.

Reply via email to