[
https://issues.apache.org/jira/browse/SOLR-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506959
]
Koji Sekiguchi commented on SOLR-264:
-------------------------------------
If I post
http://localhost:8983/solr/select/?q=*:*&fl=name&sort=rand_1234%20desc several
times, Solr returns different response every time. This looks good.
But I'm curious how to avoid queryResultCache, while QueryResultKey(Q,F,S) is
always same.
Maybe I'm wrong, but:
public SortComparatorSource getFactory() {
:
return new SortComparatorSource() {
:
public boolean equals(Object o) {
return (o instanceof RandomSort) && getField().equals(((RandomSort)
o).getField());
}
};
}
doesn't the equals method use SortComparatorSource, instead of RandomSort? If
so, this always return false, then cause to avoid queryResultCache...?
> 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-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.