我的 datastore-indexes.xml 看起来像这样:
<datastore-index kind="Book" ancestor="false" source="auto">
<property name="^i" direction="asc"/>
<property name="nurInRange2" direction="asc"/>
<property name="firstModificationDate" direction="desc"/>
</datastore-index>
数据存储管理控制台实际上在数据/数据存储索引下显示了这一点:
^i ▲ , nurInRange2 ▲ , firstModificationDate ▼ : serving
但是,当我转到数据存储查看器并执行by gql
查询时:
SELECT * FROM Book where nurInRange2 = True order by firstModificationDate DESC
我得到以下回复:
no matching index found.
The suggested index for this query is:
- kind: Book
properties:
- name: nurInRange5
- name: firstModificationDate
direction: desc
我有什么明显的遗漏吗?我的指数公式有什么问题吗?