incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Fouché" <>
Subject Sort by date and find by key
Date Tue, 13 Jan 2009 21:35:02 GMT

Let's say I have documents like this: {date: '2008/06/09 13:52:11
+0000', name:'Roger'}
I'd like to find documents matching a name, and sorted by date. I know
that for sorting documents by date, the 'date' field has to be in the
key emitted by the view.

In this case, what to I have to emit if I need to see only documents
which name is 'Roger' but sorted by date ?
I would do something like:
emit([,], null);

Can I query this view without having to specify the date ? I need
these documents to be sorted by date, because I'll paginate on them.


View raw message