couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurício Szabo <mauricio.sz...@gmail.com>
Subject Re: Finding with two fields
Date Wed, 21 Oct 2009 11:31:04 GMT
Ok, but how? How is it compared? I've already tried with a lot of
combinations, and none seens to work.

On Wed, Oct 21, 2009 at 9:27 AM, Cairo Noleto <caironoleto@gmail.com> wrote:

> You can use startkey and endkey to find this values
>
> On Wed, Oct 21, 2009 at 08:16, Maurício Szabo <mauricio.szabo@gmail.com
> >wrote:
>
> > Hello, list.
> >
> > I have a problem on an aplication I'm trying to migrate to CouchDB: I
> have
> > a
> > series of documents like:
> >
> > {
> >  type: "Period",
> >  start: "2009-10-12",
> >  end: "2009-12-12"
> > }
> >
> > Problem is, I need to check on my application if there is a valid period.
> I
> > need to search if:
> >
> > (start < today) and (today < end)
> >
> > How can I do this in CouchDB? I've tried creating views, but I'm stuck
> (I'm
> > emitting [doc.start, doc.end] as an index, but I still cannot find a way
> to
> > search this).
> >
> > Thanks in advance,
> > Mauricio.
> >
>
>
>
> --
> Cairo Noleto 
> Visits http://www.caironoleto.com/
>

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