函式

google.appengine.api.search 套件包含以下函式:

get_indexes(namespace='', offset=None, limit=None, start_index_name=None, include_start_index=True, index_name_prefix=None, fetch_schema=False, deadline=None)

傳回可用索引清單。

引數

namespace

要傳回的索引命名空間。如未設定,則會使用目前的命名空間。

offset

要傳回的第一個索引偏移值。

limit

要傳回的索引數目。

start_index_name

要傳回的第一個索引名稱。

include_start_index

如果是 true,請在結果中加入 start_index_name 指定的索引。

index_name_prefix

選取要傳回的索引前置字串。

fetch_schema

指定是否擷取各個索引的結構定義。

deadline

以秒為單位的 RPC 呼叫期限。

結果值

GetResponse 物件代表索引清單。如果 fetch_schema==true,則每個索引中都會包含其結構定義。

例外狀況

TypeError

傳送了無效的引數。

InternalError

內部伺服器上的要求失敗。