App Engine datastore does not support operator OR

Posted by JohnIdol on Stack Overflow See other posts from Stack Overflow or by JohnIdol
Published on 2009-05-31T00:45:56Z Indexed on 2010/06/11 16:03 UTC
Read the original article Hit count: 263

I am trying to query the google datastore for something like (with pm --> persistanceManager):

String filters = "(  field == 'value' ||  field == 'anotherValue' )";
Query query = pm.newQuery(myType.class, filters);

When I execute - I am getting back: App Engine datastore does not support operator OR.

What's the best approach in people experience for this kind of queries?

Any help appreciated!

© Stack Overflow or respective owner

Related posts about java

Related posts about google-app-engine