So I wrote:
Query query=new Query("page");
query.addFilter("tags", FilterOperator.EQUAL, "sport");
query.addFilter("tags", FilterOperator.EQUAL, "video");
and i obtain the query :
SELECT * FROM page WHERE tags = video AND tags = sport
It was too easy : ).
Thank you Ikai Lan.
On 1 oct, 21:10, "Ikai Lan (Google)" <[email protected]> wrote:
> Just use an equality filter - this should work just fine.
>
> Select from Kind where propertyName contains 'propertyValue' is just:
>
> Query q = new Query("Kind");
> query.addFilter("propertyName", FilterOperator.EQUAL, "propertyValue");
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger:http://googleappengine.blogspot.com
> Reddit:http://www.reddit.com/r/appengine
> Twitter:http://twitter.com/app_engine
>
> On Fri, Oct 1, 2010 at 7:54 AM, tleroy <[email protected]> wrote:
> > Bonjour tout le monde,
>
> > I have in my DataStore an entity 'Page' with fields :
> > name : store in a String
> > tags : store in a List<String>
>
> > I would like to fetch pages with only some tags, something like that :
> > Select * from Page where tags contains ['sport','video']
>
> > Is it possible? I think it's possible with JDO but I don't know how to
> > do that with the Low Level API
>
> > Can you help me?
>
> > Thank you.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-appengine-java%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.