0

ブログ エントリに検索可能なモデルを使用しようとしていますが、開発プラットフォームでは問題なく動作しましたが、クラウドにエントリを追加しようとするとエラーが発生します。

Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/init.py", line 517, in call
    handler.post(*groups) File
"/base/data/home/apps/smart-fast/1.348228399174418277/admin.py", line 76, in post
    article.put()
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/init.py", line 895, in put
    return datastore.Put(self._entity, config=config)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 404, in Put
    return _GetConnection().async_put(config, entities, extra_hook).get_result()
File "/base/python_runtime/python_lib/versions/1/google/appengine/datastore/datastore_rpc.py", line 601, in get_result
    self.check_success()
File "/base/python_runtime/python_lib/versions/1/google/appengine/datastore/datastore_rpc.py", line 572, in check_success
    rpc.check_success()
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 502, in check_success
    self.__rpc.CheckSuccess()
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_rpc.py", line 126, in CheckSuccess 
    raise self.exception
ApplicationError:

ApplicationError: 1 Too many indexed > properties for entity: app:
"smart-fast",path < Element { type: "Article", id: 2002 }> This index put
it over the limit: entity_type: "Article",ancestor: false,
Property { name: "searchable_text_index", direction: ASCENDING},
Property { name: "searchable_text_index", direction: ASCENDING},
Property { name: "date", direction: ASCENDING}

これらのエントリはそれほど大きくありません (<500 ワード) 制限は低いですか? これを回避するために考えられる唯一の方法は、エントリを検索不可能なモデルとして保存し、エントリ テキストを小さな検索可能なモデルに分割して、それぞれがメイン エントリを参照するようにすることです。どんな助けでも大歓迎です

4

1 に答える 1

0

あなたが遭遇しているように見えるものは、インデックスの爆発と呼ばれています。詳細については、 http ://code.google.com/appengine/docs/python/datastore/queries.html#Big_Entities_and_Exploding_Indexes をご覧ください。

基本的に、非常に小さなデータセットがない限り、AppEngine を使用してフルテキスト エンジンを作成することはできません。爆発的なインデックスに遭遇するか、他の問題 (マージ結合のタイムアウトなど) に遭遇するかのいずれかです。非常に優れた全文検索サービスである IndexTank というサービスを調べることをお勧めします。完全な REST API と Python クライアントを備えているため、AppEngine を簡単に使用できます。

于 2011-02-09T17:28:19.340 に答える