1
我已經包括Geoespacial Query來檢查一個GeoPt是否在一個圓內,並且我已經爲它創建了一個索引。 當我嘗試將它部署到GAE,我收到以下錯誤:權限被拒絕創建搜索索引GAE Geoespacial Query
Creating an index failed for entity_type: "MyEntity" ancestor: falseProperty { name: "name"}Property { name: "location" mode: 3}: Permission denied for creating a search index
這是我執行
GeoPt center = new GeoPt((float) pLatitude, (float) pLongitude);
double radius = pDistanceKM*1000;
Query.Filter f = new StContainsFilter("location", new Circle(center, radius));
items = ofy().load().type(MyEntity.class).filter(f).filter("name", tmpName).list();
我已經根據documentation創建索引的代碼:
這是我的索引:
<datastore-index kind="MyEntity" source="manual">
<property name="name" />
<property name="location" mode="geospatial"/>
</datastore-index>
是否有人們有什麼想法可以獲得這種許可?
使用Java和Android Studio。
PS:當我嘗試執行代碼,在GAE的記錄表明我的相同指數作爲我的索引
com.google.api.server.spi.SystemService invokeServiceMethod: exception occurred while calling backend method com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found. The suggested index for this query is:
<datastore-index kind="MyEntity" source="manual">
<property name="name" />
<property name="location" mode="geospatial"/>
</datastore-index>
是否有任何日期到Beta版本? – jluiz20
目前還沒有任何可用於測試版的日期。 – Zeehad
@Zeehad在測試版發佈前,我是否有機會獲得邀請?我正在開發一個主要關注點在附近的應用程序。我真的很感激。 – alesko007