Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion pymongo: issues using $lte and $gte

Received: by 10.58.70.7 with SMTP id i7mr4239985veu.2.1349103514435;
        Mon, 01 Oct 2012 07:58:34 -0700 (PDT)
X-BeenThere: mongodb-user@googlegroups.com
Received: by 10.220.38.68 with SMTP id a4ls1879998vce.6.gmail; Mon, 01 Oct
 2012 07:58:24 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.66.235 with SMTP id i11mr2723630vdt.7.1349103504572; Mon,
 01 Oct 2012 07:58:24 -0700 (PDT)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
 alabdeloua...@gmail.com designates internal as permitted sender)
 smtp.mail=alabdeloua...@gmail.com; dkim=pass
 header...@gmail.com
Received: by cf4g2000vbb.googlegroups.com with HTTP; Mon, 1 Oct 2012 07:58:24
 -0700 (PDT)
Date: Mon, 1 Oct 2012 07:58:24 -0700 (PDT)
In-Reply-To: <CAFqwGEwd1ywJN_2snsX6BDxQdNZ+C8QnPSJVwrzYJJ7__v7SsQ@mail.gmail.com>
References: <583490a0-fbe9-4651-9b74-54104b3ea187@hj1g2000vbb.googlegroups.com>
 <CAFqwGExevovirU0MQTBb0YsQ6GTLcu858Ornn-AFO28X81RrNg@mail.gmail.com>
 <6fd286ef-5988-467f-b45b-b29889fe1a81@10g2000vbu.googlegroups.com>
 <9232873d-be65-4ee1-9d38-b8224c3c0d4c@m4g2000vbn.googlegroups.com>
 <06627ee4-6e26-4a1c-bce2-9f0eb9bf1aa9@cf4g2000vbb.googlegroups.com> <CAFqwGEwd1ywJN_2snsX6BDxQdNZ+C8QnPSJVwrzYJJ7__v7SsQ@mail.gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1
 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1,gzip(gfe)
Message-ID: <eff4d9e4-55c5-43a8-8fd1-5705a7bfc085@cf4g2000vbb.googlegroups.com>
Subject: Re: pymongo: issues using $lte and $gte
From: aliane abdelouahab <alabdeloua...@gmail.com>
To: mongodb-user <mongodb-user@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

but wht the simplest x<value<y dont work?
i found in lot of examples they use it, so is it deprecated?

On 1 oct, 15:42, Bernie Hackett <ber...@10gen.com> wrote:
> PyMongo just sends the query to MongoDB and reads a result, it does
> not execute the query itself.
>
> To get the behavior I think you're asking for see the $elemMatch operator:
>
> http://docs.mongodb.org/manual/reference/projection/elemMatch/
>
> On Mon, Oct 1, 2012 at 6:21 AM, aliane abdelouahab
>
>
>
>
>
>
>
> <alabdeloua...@gmail.com> wrote:
> > the explication i've is that pymongo make somthing like: verify that a
> > value that is in that range existe at least in one field, and return
> > the whole document and not the sub document.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "mongodb-user" group.
> > To post to this group, send email to mongodb-user@googlegroups.com
> > To unsubscribe from this group, send email to
> > mongodb-user+unsubscribe@googlegroups.com
> > See also the IRC channel -- freenode.net#mongodb