I get an error of "no matching index found" on a select :

select from xxx where userName == 'abc123' order by timeStamp desc


    <datastore-index kind="xxx" ancestor="false">
        <property name="userName" direction="asc" />
        <property name="lastName" direction="asc" />
        <property name="timeStamp" direction="desc" />
        <property name="postalCode" direction="asc" />
        <property name="numberOfPoints" direction="desc" />
    </datastore-index>

The code is:

                        String queryString = "select from " + 
xxx.class.getName();
                        queryString += " where userName == '" + userName;
                        queryString += "' order by timeStamp desc";
                        log.info(queryString);
                        Query query = pm.newQuery(queryString);


Anybody get any ideas ?

Any help would be much appreciated.

-- 
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.

Reply via email to