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

Koji Sekiguchi edited comment on SOLR-264 at 6/23/07 12:41 PM:
---------------------------------------------------------------

> public SortComparatorSource getFactory() {
>   :
>   return new SortComparatorSource() {
>     :
>    public boolean equals(Object o) {
>      return (o instanceof RandomSort) && getField().equals(((RandomSort) 
> o).getField());
>    }
>  };
>}

The equals() method should care of SortComparatorSource, instead of 
RandomSort...? The patch uses SortComparatorSource in equals() method.


 was:
> public SortComparatorSource getFactory() {
>   :
>   return new SortComparatorSource() {
>     :
>    public boolean equals(Object o) {
>      return (o instanceof RandomSort) && getField().equals(((RandomSort) 
> o).getField());
>    }
>  };
>}

The equals() method should care of SortComparatorSource, instead of 
RandomSort...?

> 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, RandomSortField.java, RandomSortField.java, 
> SOLR-264-RandomSortField-2.patch, 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