You have ascending index but not desc, so just create(submit) those index definition and wait while index will be created. Once created ur both query will run fine.
Sent from my BlackBerry® wireless device -----Original Message----- From: ping <[email protected]> Sender: [email protected] Date: Thu, 9 Dec 2010 02:45:26 To: Google App Engine<[email protected]> Reply-To: [email protected] Subject: [google-appengine] ascending ordering vs. descending ordering Hi :) What could be the reason that following query works fine with "asc" ordering and not with "desc" ??? Query query = pm.newQuery(Purchase.class); query.setFilter("groupname == groupnameParameter"); query.declareParameters("String groupnameParameter"); query.setOrdering("date asc"); in the log of the gae i read the following exception when i run the code with descending ordering : com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found.. <datastore-index kind="Purchase" ancestor="false" source="manual"> <property name="groupname" direction="asc"/> <property name="date" direction="desc"/> </datastore-index> -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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?hl=en.
