riak search sort question?

Rusty Klophaus rusty at basho.com
Thu Apr 28 22:11:12 EDT 2011


Hi Evgeni,

You can specify "desc" after your field in the URL to sort in descending
order. (Or "asc" if you want to explicitly request an ascending sort.)

For example:

"http://hostname:8098/solr/bucket?q=query&sort=change_date desc"

Remember to URL encode the space.

Best,
Rusty

On Wed, Apr 27, 2011 at 7:07 AM, e <bezmenov at gmail.com> wrote:

>  Hi,
> I have used this one in search request( *sort=FIELDNAME* – Sort on the
> specified field name. Default is “none”, which causes the results to be
> sorted in descending order by score.) Assume the fieldname is a change_date.
> I got the result and sorted by change_date ASC.
> Howto DESC the resultSet?
>
> Regards Evgeni
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110428/1d0aa0a6/attachment.html>


More information about the riak-users mailing list