当我们更新文本搜索文档时,我们得到以下配额限制异常,
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)
和代码是
公共 SearchService searchService = SearchServiceFactory.getSearchService();
公共索引 index = 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(文档);
对解决它有什么建议吗?