incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Blair Nilsson <blair.nils...@gmail.com>
Subject Re: startkey/endkey and descending=true
Date Wed, 17 Jun 2009 22:58:53 GMT
Maybe your start key and end key are around the wrong way for descending order?

On Thu, Jun 18, 2009 at 10:46 AM, Ross Bates<rbates@gmail.com> wrote:
> Hi All - I have a view that uses an array for it's key. I want to select by
> the first value and sort by the second in descending order (it sorts
> properly in ascending order by default)
>
> I'm using this syntax to select the rows and everything works fine
>
> http://couch:5984/msg_db/_view/views/msg_by_tag_date?startkey=[%22Tag%22]&endkey=[%22Tag%22,{}]
>
> but when I add the descending parameter like this:
>
> http://couch:5984/msg_db/_view/views/msg_by_tag_date?descending=true&startkey=[%22Tag%22]&endkey=[%22Tag%22,{}]
>
> couch.log indicates a 200 but I get 0 rows back.
>
> Is what am I trying to do possible?
>
> Thanks for any help!
>
> -Ross
>

Mime
View raw message