<datastore-index kind="Environment" ancestor="false">
<property name="active" direction="asc" />
<property name="consumed" direction="asc" />
</datastore-index>
<datastore-index kind="Environment" ancestor="false">
<property name="active" direction="asc" />
<property name="creationDate" direction="desc" />
</datastore-index>
I have the above two indexes
When I query as following, it is not working and it says new index is required.
SELECT * FROM Environment
where active = false and consumed = true and creationDate < '2013-09-22'
GQL response is as follows:
no matching index found. The suggested index for this query is:
<datastore-index kind="Environment" ancestor="false">
<property name="active" direction="asc" />
<property name="consumed" direction="asc" />
<property name="creationDate" direction="asc" />
</datastore-index>
What am I doing wrong? Should it not work based on zigzag merge?