Google App Engine需要索引错误

And*_*son 7 google-app-engine

我目前在我的应用引擎应用上遇到了需求索引错误:http://www.gaiagps.com/wiki/home.我相信这个索引应该由我的index.yaml文件自动创建(见下文).

谷歌搜索,我想我只需要等待我的索引建立.这是正确的,还是我需要手动执行某些操作?是否有某种索引构建队列?我的桌子现在非常非常小.

编辑:我在我的app.yaml添加了"indices:"行,现在app引擎报告索引正在构建,所以我认为这是固定的.考虑到我从未碰过它,这个文件是错误的,这很奇怪.

indexes:

# AUTOGENERATED

# This index.yaml is automatically updated whenever the dev_appserver
# detects that a new type of query is run.  If you want to manage the
# index.yaml file manually, remove the above marker line (the line
# saying "# AUTOGENERATED").  If you want to manage some indexes
# manually, move them above the marker line.  The index.yaml file is
# automatically uploaded to the admin console when you next deploy
# your application using appcfg.py.

- kind: Revision
  properties:
  - name: name
  - name: created
Run Code Online (Sandbox Code Playgroud)

该应用程序适用于我的开发服务器,但不适用于生产.但是,在我的开发控制台上,我注意到了这个错误(编辑:这个错误现在已经添加了索引:到上面的app.yaml文件):

ERROR    2009-10-18 04:46:51,908 dev_appserver_index.py:176] Error parsing /gaiagps.com/index.yaml:

'NoneType' object is not callable
  in "<string>", line 13, column 3:
    - kind: Revision
      ^
Run Code Online (Sandbox Code Playgroud)

Roy*_*ban 7

"索引:"它在列1日起,已被删除,如果index.yaml中的第一行,其中应该有刚刚出现此错误.


小智 0

我相信您需要将索引添加到您的 app.yaml 文件中。此外,当您推送到 AppEngine 时,生成索引将需要一些时间,因为您构建索引的请求将与其他人一起被简单地扔进作业队列中。