After closely reading 
http://code.google.com/appengine/docs/java/config/indexconfig.html
I realize my second attempt would not work...

Trying to separate them into two different <datastore-index> tags.


On Apr 5, 12:23 pm, Stevko <[email protected]> wrote:
> is there a way to index an object on the same field in both ascending
> and descending directions?
>
> I've tried to use this in my datastore-indexes.xml but the app engine
> does not reflect the update_indexes command.
>
> before:
>    <datastore-index kind="MyObject" ancestor="true" source="auto">
>         <property name="timestamp" direction="asc"/>
>     </datastore-index>
>
> got this error:
>
> No matching index found.. <datastore-index kind="MyObject"
> ancestor="true" source="manual">
>         <property name="timestamp" direction="desc"/>
>     </datastore-index>
>
> Tried this datastore-indexes.xml entry:
>    <datastore-index kind="MyObject" ancestor="true" source="manual">
>         <property name="timestamp" direction="asc"/>
>         <property name="timestamp" direction="desc"/>
>     </datastore-index>

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

Reply via email to