Java 创建搜索索引GAE GEOSPACIAL查询的权限被拒绝
我包含了Geoespacial查询,以检查GeoPt是否位于圆内,并为其创建了索引。 当我尝试将其部署到GAE时,出现以下错误:Java 创建搜索索引GAE GEOSPACIAL查询的权限被拒绝,java,android,google-app-engine,geospatial,google-cloud-datastore,Java,Android,Google App Engine,Geospatial,Google Cloud Datastore,我包含了Geoespacial查询,以检查GeoPt是否位于圆内,并为其创建了索引。 当我尝试将其部署到GAE时,出现以下错误: Creating an index failed for entity_type: "MyEntity" ancestor: falseProperty { name: "name"}Property { name: "location" mode: 3}: Permission denied for creating a search index 这是我正在
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();
我已根据以下内容创建了索引:
这是我的索引:
<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>
com.google.api.server.spi.SystemService invokeServiceMethod:调用后端方法com.google.appengine.api.datastore.DatastoreNeedIndexException时发生异常:未找到匹配的索引。此查询的建议索引为:
数据存储的地理空间搜索是一项目前已达到容量的任务。查看错误,看起来您不是Alpha程序的一部分
请继续关注测试版,它将向所有人开放 测试版发布日期有没有?测试版发布日期还没有。@Zeehad在测试版发布之前我有没有机会收到邀请?我正在开发一个应用程序,主要关注附近的地方。我真的很感激。你有关于什么时候开始beta版的信息吗?因为这是alpha版已经有很长一段时间了。是否会发布测试版?有什么消息吗?