【发布时间】:2016-09-04 07:20:18
【问题描述】:
我们在更新文本搜索文档时遇到配额限制异常,
com.google.apphosting.api.ApiProxy$OverQuotaException:API 调用 search.IndexDocument() 需要的配额超过了可用配额。 在 org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:365) 在 org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:233) 在 org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:209)
代码是
public SearchService searchService = SearchServiceFactory.getSearchService();
公共索引索引 = searchService.getIndex(IndexSpec.newBuilder().setName("contacts"));
Document.Builder 文档 = Document.newBuilder();
docs.addField(Field.newBuilder().setName("first_name_start").setText(first_name.substring(0, 1)));
index.put(docs);
对解决它有什么建议吗?
【问题讨论】:
-
简单的解决方案可能是增加报价,有没有我们可以通过谷歌增加或请求增加报价的选项?
-
您是否相信您实际上每分钟超过 15000 次更新/删除操作?
-
每个命名空间限制也可能是 10GB。
标签: google-app-engine google-cloud-platform gae-search