Hi Raphaël from google.appengine.api import search > index = search.Index(name='productsearch1') > > The problem is the google.appengine.api package does not exist... > (ModuleNotFoundError: No module named 'google.appengine'). >
GAE Search API can be accessed in several contexts of Standard Environment 1. Production environment. Try to deploy this code to GAE, it will be work as expected. 2. Local development server. Follow this guide: https://cloud.google.com/appengine/docs/standard/python/tools/using-local-server Search API will be available with some restrictions: https://cloud.google.com/appengine/docs/standard/python/search/devserver 3. Local unit tests. You need some additional settings as described here: https://cloud.google.com/appengine/docs/standard/python/tools/localunittesting BTW, you can use my helper class for this purpose (just inherit your test cases from this class): https://github.com/vb64/test.helper.gae WBR, Vitaly. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/31eac7f5-d8de-43f3-9ee3-b157db4706a0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
