In Google DataStore, I used ordering by one property and filtered by other property. But Datastore throws exception.
Lets say i filter property of firstname and ordered by creationdate
String firstname = "Smith";
query.setFilter("firstname == :1");
query.setOrdering("creationdate desc");
query.execute(firstname)
It is not working.
In the past I got an exception when we were dealing with multiple attributes; I was suggested to use indexing. See if that helps
https://developers.google.com/appengine/docs/java/config/indexconfig