0

私の 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

しかし、Datastore Viewer に移動して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

私が見逃している明らかなものはありますか?インデックスの作成に問題はありますか?

4

1 に答える 1

0

並べ替えたい場合は、フィルターで「firstModificationDate」を使用する必要があります。

詳細については、クエリの制限を参照してください。

于 2012-08-03T06:25:10.180 に答える