내 앱 ID는 gusclabs입니다. 데이터 저장소 -이 Index.xml에서datastore-index.xml에도 색인이 생성되지 않았습니다.
색인 항목 :에
<datastore-index kind="ItemGroupOptionalQuantities" ancestor="true" source="manual">
<property name="quantityFrom" direction="asc"/>
</datastore-index>
오류 appspot은 로그 :
Type 'com.google.appengine.api.datastore.DatastoreNeedIndexException' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found.
The suggested index for this query is:
<datastore-index kind="ItemGroupOptionalQuantities" ancestor="true" source="manual">
<property name="quantityFrom" direction="asc"/>
</datastore-index>
내가 업데이트 된 엔티티 후 새로운 버전의 응용 프로그램을 배포 할 수 있습니다.
수량을 사용하여 질의를 사용하여 주문할 때이 오류가 있습니다.
--- start query ----
Query query = new Query("ItemGroupOptionalQuantities");
query.setAncestor(ancestorKey);
query.addSort("quantityFrom", Query.SortDirection.ASCENDING)
PreparedQuery preparedQuery = datastore.prepare(query);
FetchOptions fetchOptions = FetchOptions.Builder.withLimit(10);
QueryResultList<Entity> entities = preparedQuery.asQueryResultList(fetchOptions);
--- end query ---
실행중인 쿼리를 제공 할 수 있습니까? 잘못된 색인이 권장 될 수 있습니다. –
나는 Patrick Costello라는 질의를 제공했다. 도와 주셔서 감사합니다. – user3347211