問題タブ [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 - TransientError: 一時的な検索サービス エラー - Python Google App Engine 検索
クエリを実行し、大きな number_found_accuracy を使用して「updated_at」フィールドで並べ替えようとしています:
get_result() が呼び出されると、次のエラーが表示されます。
ファイル "/base/alloc/tmpfs/dynamic_runtimes/python27g/3b44e98ed7fbb86b/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py"、1535 行目、呼び出し rv = self.handle_exception(request, response, e ) ファイル "/base/alloc/tmpfs/dynamic_runtimes/python27g/3b44e98ed7fbb86b/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py"、1529 行目、呼び出し rv = self.router.dispatch(request, response) ファイル "/base/alloc/tmpfs/dynamic_runtimes/python27g/3b44e98ed7fbb86b/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py"、1278 行目、default_dispatcher return route.handler_adapter(request, response)ファイル "/base/alloc/tmpfs/dynamic_runtimes/python27g/3b44e98ed7fbb86b/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py"、1102行目電話 return handler.dispatch() ファイル "/base/data/home/apps/p~imobzi-app/20181127t101400.414282042583891084/modules/base_handler.py"、72 行目、ディスパッチ中 super(BaseHandler, self).dispatch() ファイル「/base/alloc/tmpfs/dynamic_runtimes/python27g/3b44e98ed7fbb86b/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py」、572行目、ディスパッチでself.handle_exception(e、self.app.debugを返す) ファイル "/base/alloc/tmpfs/dynamic_runtimes/python27g/3b44e98ed7fbb86b/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py"、570 行目、ディスパッチ return メソッド (*args, **kwargs) 内ファイル "/base/data/home/apps/p~imobzi-app/20181127t101400.414282042583891084/main.py"、132 行目、get contacts = query_future.get_result() ファイル "/base/alloc/tmpfs/dynamic_runtimes/python27g/3b44e98ed7fbb86b/python27/python27_lib/versions/1/google/appengine/api/search/search.py"、行 281、get_result raise _ToSearchError(e) TransientError: 一時的な検索サービス エラー
クエリ結果が大きい場合に同じクエリで「number_found_accuracy」と「sort_options」を使用すると、エラーが発生します (このクエリは 50,000 を超える結果を返します)。
「number_found_accuracy」または「sort_options」が query_options から削除された場合、正常に結果が得られますが、両方が query_options にある場合、エラーが発生します。
通常、クエリから「number_found_accuracy」を削除しますが、ユーザーの結果カウントを表示し、updated_at フィールドで並べ替える必要があります。これを解決する方法を知っている人はいますか?これは、ローカル/開発環境でプロジェクトをサーバーにデプロイした場合にのみ発生し、すべてが期待どおりに機能します。