I created my first application GoogleApps and I want to deploy it on server. It doesn't work and in logs I found an error:
Uncaught exception from servlet com.google.appengine.api.datastore.DatastoreNeedIndexException: The index for this query is not ready to serve. See the Datastore Indexes page in the Admin Console. The suggested index for this query is:
<datastore-index kind="Greeting" ancestor="true" source="manual">
<property name="date" direction="desc"/>
</datastore-index>
I suppose that I have to paste this code into my application but I have no idea where. I was following this tutorial:
Google Apps TUTORIAL - Java
Any ideas?
Thanks in advance :)
Assuming you're using the Java app engine, that code needs to go in your datastore-indexes.xml
file located in your WEB-INF
directory. The full xml file would look like:
<?xml version="1.0" encoding="utf-8"?>
<datastore-indexes autoGenerate="true">
<datastore-index kind="Greeting" ancestor="true" source="manual">
<property name="date" direction="desc"/>
</datastore-index>
</datastore-indexes>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With