部署bloog时出现Appengine Error 400

时间:2011-11-25 23:00:14

标签: python google-app-engine

最近我在appengine上部署bloog一个基于python的webblog但是出现了这个错误

Uploading index definitions.
Error 400: --- begin server output ---
Creating a composite index failed: This index:
entity_type: "Article"
ancestor: false
Property {
  name: "published"
  direction: 2
}

index.yaml的内容是

indexes:

- kind: Article
  properties:
  - name: __searchable_text_index
  - name: published
    direction: desc

- kind: Article
  properties:
  - name: article_type
  - name: published
    direction: desc

- kind: Article
  properties:
  - name: article_type
  - name: title

- kind: Article
  properties:
  - name: display_type
  - name: published
    direction: desc

- kind: Article
  properties:
  - name: published
    direction: desc

- kind: Article
  properties:
  - name: tags
  - name: published
    direction: desc

- kind: Comment
  properties:
  - name: article
  - name: thread

# AUTOGENERATED

因此无法更新index.yaml文件,因此它在主站点上出现500错误,如何解决?

1 个答案:

答案 0 :(得分:0)

从index.yaml中删除该索引 - 以及任何其他单个属性索引。它们完全没有必要,因为单个属性已经被数据存储区索引。