couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Buesing <ge...@geoffbuesing.com>
Subject Re: Sorting view queries
Date Fri, 03 Jul 2009 16:37:37 GMT
On Fri, Jul 3, 2009 at 6:59 AM, Robert Newson <robert.newson@gmail.com>wrote:

> wouldn't emitting the start timestamp as the key solve the problem?
> (if you need both, have two views).


That would just return upcoming events, it wouldn't return current events
that have already started but have yet to end.

I think you could do this with couchdb-lucene, though, something like:

q=starttime:[current_time TO far_future_time] OR endtime:[current_time TO
far_future_time]
&sort=starttime

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