You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Anish Menon <an...@icloud.com> on 2014/06/29 07:26:08 UTC

have look ..

{

date :  "2014-06-27 11:50:24.336458"
status : "Blaah blaah"

},

{

date :  "2014-06-27 11:55:24.336458"
status : "Blaah blaah2"

},

{

date :  "2014-06-27 11:59:24.336458"
status : "Blaah blaah3"

}
I would like to filter those documents whose near to datetime "2014-06-27 00:04:24.336458 is less than current time. Is there a way I can achieve this using view.

Re: have look ..

Posted by Benoit Chesneau <bc...@gmail.com>.
start_key="2014-06-27 00:03", end_key="2014-06-27 00:05\0" or such thing
probably.


On Sun, Jun 29, 2014 at 3:28 PM, Sebastian Rothbucher <
sebastianrothbucher@googlemail.com> wrote:

> Hi Anish,
>
> I'd never have instable functions like 'now' in a view - it will not work.
> View+list could do the Trick in your case as the view can remain stable
>
> Good luck
>      Sebastian
>
> Von meinem iPhone gesendet
>
> > Am 29.06.2014 um 07:26 schrieb Anish Menon <an...@icloud.com>:
> >
> > {
> >
> > date :  "2014-06-27 11:50:24.336458"
> > status : "Blaah blaah"
> >
> > },
> >
> > {
> >
> > date :  "2014-06-27 11:55:24.336458"
> > status : "Blaah blaah2"
> >
> > },
> >
> > {
> >
> > date :  "2014-06-27 11:59:24.336458"
> > status : "Blaah blaah3"
> >
> > }
> > I would like to filter those documents whose near to datetime
> "2014-06-27 00:04:24.336458 is less than current time. Is there a way I can
> achieve this using view.
>

Re: have look ..

Posted by Sebastian Rothbucher <se...@googlemail.com>.
Hi Anish,

I'd never have instable functions like 'now' in a view - it will not work.
View+list could do the Trick in your case as the view can remain stable

Good luck 
     Sebastian 

Von meinem iPhone gesendet

> Am 29.06.2014 um 07:26 schrieb Anish Menon <an...@icloud.com>:
> 
> {
> 
> date :  "2014-06-27 11:50:24.336458"
> status : "Blaah blaah"
> 
> },
> 
> {
> 
> date :  "2014-06-27 11:55:24.336458"
> status : "Blaah blaah2"
> 
> },
> 
> {
> 
> date :  "2014-06-27 11:59:24.336458"
> status : "Blaah blaah3"
> 
> }
> I would like to filter those documents whose near to datetime "2014-06-27 00:04:24.336458 is less than current time. Is there a way I can achieve this using view.