couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Frisch <peter.fri...@vervis.de>
Subject RE: Map function to find docs in time interval
Date Mon, 19 Apr 2010 09:23:20 GMT
Unfortunately that won't work. Consider the following documents (leaving out the seconds and
UTC offset:

[[2010,04,01,  8,04],
 [2010,04,01,  9,23]]

[[2010,04,01, 10,24],
 [2010,04,02,  6,45]]

[[2010,04,01, 11,03],
 [2010,04,01, 16,20]]

[[2010,04,01, 12,24],
 [2010,04,01, 15,45]]

[[2010,04,02, 10,24],
 [2010,04,02, 13,45]]

Now I want to get back all documents for [2010,04,01, 12,00]

Emitting as you suggested and setting the startkey to [2010,04,01, 11,59, 2010,04,01 12,01]
I would not get the third document, but fourth and fifth document. 


Mime
View raw message