Hi Raphaël Are you deploying your app to Standard Environment? You can only use (and will only find google.appengine.api) in Standard env. If you are deploying to flexible environment you will not find appengine API, It's a more general environment where you can use standard Python google libraries as it were in your local development env.
Hope it helps...Juan Luis On Friday, 7 September 2018 19:14:07 UTC+2, Raphaël Antonmattei wrote: > > Hi, > > We're having some trouble working with the Python API to index documents > into the Search in App Engine. > > According to the doc here > https://cloud.google.com/appengine/training/fts_intro/lesson2 > we have to do it like shown below > > 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'). SO, ther eis > obviously a missing dependency. After a few minutes of Googling, we found > this > library <https://github.com/optimizely/python-appengine> which looks > unofficial and does not seem supported anymore (last commit from Jan 2015). > > Then, that one > https://developers.google.com/api-client-library/python/reference/pydoc > which does not have any AppEngine API. > > After more digging, we found this > https://googlecloudplatform.github.io/google-cloud-python/ > Surprisingly, there is nothing about App Engine nor Search... > > With all these resources, we were not able to follow the example shown on > the AppEngine Search documentation. Moreover the doc page mentioned above > (with code samples) is from 2012... > > Thus the questions below. > > - How can we move forward on this and index our documents in Search > using Python? > > - Additionally, is there any refactoring going on with the various > (too many) Python APIs? This is VERY confusing. > > - Is there any search related products in the pipe? Surprisingly the > Search in AppEngine looks like the only option as a managed search product > and does not seem central in the offering... (🤔 odd for a Search company > like Google) whereas there are other competitors on the market (AWS > CloudSearch, SwifType, Algolia, Elastic Cloud...) > > > Thanks in advance for your help, greatly appreciated! > Raphael > > > > -- > > Raphaël Antonmattei > VP of Engineering > ------------------------------ > +33 7 84 48 47 22 > [email protected] <javascript:> > Paris • London • New York > pathmotion.com • LinkedIn > <https://www.linkedin.com/in/rantonmattei/> • PathMotion Profile > <https://pathmotion.career-inspiration.com/app/profile/212265> • Twitter > <https://twitter.com/rantonmattei> > > -- 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/9a0fe384-05d9-462f-a041-42b99f49a6f5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
