問題タブ [gae-search]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
google-app-engine - GAE Text Search での部分的な日付に対するクエリの最適化された方法は何ですか?
Google App Engine テキスト検索を使用して、完全な日付の値 (誕生日など) ではなく、月ごとにフィルター処理されたエンティティを取得する必要があります。GAE ドキュメントを確認したところ、日付フィールドを月ごとに直接クエリすることはできないと思います。
したがって、月/日でフィルター処理するために、日付 (DD)、月 (MM)、年 (YYYY) などの各日付サブ値を、完全な日付フィールドと共に個別の NUMBER フィールドとして保存することを検討します。
このように保存することで達成できることをローカルで確認しました。しかし、これは、日付のサブ値を照会するときに各フィールドを分割して日付を保存する正しい方法ですか?
GAE Text Search の 10GB のサイズ制限以外に、ドキュメントあたりのフィールド数に既知/未知の制限はありますか?
私に提案してください。
ありがとう、ナレシュ
java - Google App Engine: API パッケージ 'search' または呼び出し 'IndexDocument()' が見つかりませんでした
Google App Engine の Search API を使用して、ドキュメントをテスト インデックスにインデックス付けしようとしています。Google App Engine の公式ドキュメントに記載されているコード サンプルを使用しています。しかし、以下のスニペットを実行しようとすると。経由でドキュメントを配置しようとすると、次のエラーが発生しますindex.put
。
スレッド「メイン」の例外 com.google.apphosting.api.ApiProxy$CallNotFoundException: API パッケージ「検索」または呼び出し「IndexDocument()」が見つかりませんでした。com.google.apphosting.api.ApiProxy$1.get(ApiProxy.java:179) com.google.apphosting.api.ApiProxy$1.get(ApiProxy.java:177) com.google.appengine.api.utils .FutureWrapper.get(FutureWrapper.java:88) at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:88) at com.google.appengine.api.search.FutureHelper.getInternal(FutureHelper.java) :73) com.google.appengine.api.search.FutureHelper.quietGet(FutureHelper.java:32) で com.google.appengine.api.search.IndexImpl.put(IndexImpl.java:486) で test.service. SearchingService.indexADocument(SearchingService.java:52)
コード スニペットは次のとおりです。
Eclipse Kepler で appengine-java-sdk-1.9.18 を使用しています。コードをローカルの開発サーバーで実行するか、appspot でホストされている運用環境で実行するかは問題ではありません。同じエラーが発生します。私はすでに Eclipse で Google アカウントに認証されており、Eclipse を介してコードを本番環境にプッシュできます。誰もこのエラーを見たことがありますか?
google-app-engine - How to delete a search index on the App Engine using Go?
I am wondering what is the best way to delete a search index of the full text search API that is available on the Google App Engine. I have found a few questions on this topic focusing on Python, but none on Go. The general suggestions seems to be to manually delete all documents in the search index and than call index.delete_schema()
, see for example[0].
However, for Go there seems to be no function to delete a schema. I have used a task queue to remove every document in an index, but the size of the index shown in the App Engine Dashboard did not decrease.
google-app-engine - Google App Engine TextSearch Update/Delete 1 分あたり 15,000 割り当て制限の例外
textsearch ドキュメントを更新しているときに、次のクォータ制限の例外が発生します。
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) で(SynchronousDispatcher.java:209)
コードは
public SearchService searchService = SearchServiceFactory.getSearchService();
public Index 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(ドキュメント);
それを解決するための提案はありますか?