2009-10-18 80 views
6

我目前在我的應用引擎應用程序上發現需求索引錯誤:http://www.gaiagps.com/wiki/home。我相信這個索引應該是由我的index.yaml文件自動創建的(見下文)。Google App引擎需要索引錯誤

使用Google搜索一下,我想我只需要等待索引建立。這是正確的,還是我需要手動執行某些操作?有沒有某種索引建立隊列?我的桌子現在非常非常小。

編輯:我添加了行「索引:」到我的app.yaml,現在應用引擎報告索引正在建設,所以我認爲這是固定的。考慮到我從來沒有碰過這個文件,這個文件是錯誤的,這很奇怪。

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 

的應用作品在我的開發服務器上,而不是在生產。然而,我的開發控制檯上,我已經注意到這個錯誤(編輯:這個錯誤現在已經沒有了我添加索引:上述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 
    ^
+0

爲什麼會有人想關閉這個問題? – 2009-10-18 04:50:53

+0

你不能刪除它嗎? – 2009-10-18 13:53:41

回答

0

我相信你需要將索引添加到您的app.yaml文件中。此外,當您推送到AppEngine時,需要一段時間才能生成索引,因爲您的索引建立請求將與其他人一起被簡單地放入工作隊列中。

1

指標不包括在app.yaml文件,他們需要在index.yaml中去

6

出現此錯誤,如果index.yaml中的第一行,其中應該有隻是「索引:」上它從第1列開始,已被刪除。

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

這條線,因爲當u自動寫這行,然後Web服務器的發展模式上的每一列創建索引和你提烏爾指標應指定coloumn