Python 2.7 已終止支援,並將於 2026 年 1 月 31 日
淘汰。淘汰後,您將無法部署 Python 2.7 應用程式,即使貴機構先前曾使用機構政策重新啟用舊版執行階段的部署作業,也無法部署。現有的 Python 2.7 應用程式在
淘汰日期過後,仍會繼續執行並接收流量。建議您
改用系統支援的最新 Python 版本。
函式
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
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
內部伺服器上的要求失敗。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-09-11 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-11 (世界標準時間)。"],[],[],null,[]]