couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Bates <rba...@gmail.com>
Subject startkey/endkey and descending=true
Date Wed, 17 Jun 2009 22:46:48 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message