【发布时间】:2017-03-24 16:14:49
【问题描述】:
我已经使用命令行 SDK 上传了我的 index.yaml 文件:
但我在运行页面时仍然收到“需要索引错误”:
NeedIndexError: no matching index found. recommended index is:
- kind: RouteDetails
ancestor: yes
properties:
- name: RouteName
direction: desc
The suggested index for this query is:
- kind: RouteDetails
ancestor: yes
properties:
- name: RouteName
direction: desc
如何让 Google App Engine 识别我的实体索引?
我如何删除重复项? (我需要吗?)
【问题讨论】:
-
顺便说一句,我也看了这个问题:stackoverflow.com/questions/29807215/… 和这个:stackoverflow.com/questions/33388390/… 这让我中途但仍然得到这个错误
-
如果你仔细看你会发现这两个看起来一样的索引是不一样的。不是出于原因/原因。这是两个不同属性名称“原因”和“原因”的两个不同索引
-
是的,我不小心添加了一个带有小写“原因”的内容,然后添加了一个带有大写“原因”的内容以尝试更正它,最终得到了两个。
标签: python-2.7 google-app-engine google-cloud-datastore