couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kirchgessner <martin.ki...@gmail.com>
Subject Re: Views, lookup by a key, then sort by another one?
Date Thu, 06 Jan 2011 13:18:23 GMT
View results are sorted by key, so you must use complex keys (arrays) to add
the updated_at field in your keys.

Then you will be able to query the view for a date range with the startkey
and endkey parameters.

see also
http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options
and
http://wiki.apache.org/couchdb/View_collation


Martin

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message