Espace de noms des index à afficher. S'il n'est pas défini, l'espace de nom actuel est utilisé.
offset
Décalage du premier index à afficher.
limit
Nombre d'index à afficher.
start_index_name
Nom du premier index à afficher.
include_start_index
Si la valeur est définié sur true, incluez l'index spécifié par start_index_name dans les résultats.
index_name_prefix
Préfixe pour sélectionner les index à afficher.
fetch_schema
Spécifie si le schéma doit être extrait pour chaque index.
deadline
Date limite pour l'appel RPC en secondes.
Result value
Objet GetResponse représentant une liste d'index. Si la valeur fetch_schema==true, chaque index contiendra son schéma.
Exceptions
TypeError
Argument non valide transmis.
InternalError
La requête a échoué sur les serveurs internes.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\u003cp\u003eThis API function \u003ccode\u003eget_indexes\u003c/code\u003e is available for first-generation runtimes and can be used when migrating to second-generation runtimes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eget_indexes\u003c/code\u003e function retrieves a list of indexes within a specified namespace, with options to set an offset, limit, starting index, and prefix.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eget_indexes_async()\u003c/code\u003e method offers asynchronous retrieval of the index list, returning a future that requires \u003ccode\u003eget_result()\u003c/code\u003e to be called to obtain the actual result.\u003c/p\u003e\n"],["\u003cp\u003eParameters for \u003ccode\u003eget_indexes\u003c/code\u003e include options for namespace, offset, limit, starting index name, prefix, fetching schema information, and setting a deadline for the RPC call.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns a \u003ccode\u003eGetResponse\u003c/code\u003e object which contains the list of indexes and their schemas when \u003ccode\u003efetch_schema\u003c/code\u003e is set to true, and it can raise a \u003ccode\u003eTypeError\u003c/code\u003e or \u003ccode\u003eInternalError\u003c/code\u003e in case of issues.\u003c/p\u003e\n"]]],[],null,["# Functions\n\n| This API is supported for first-generation runtimes and can be used when [upgrading to corresponding second-generation runtimes](/appengine/docs/standard/\n| python3\n|\n| /services/access). If you are updating to the App Engine Python 3 runtime, refer to the [migration guide](/appengine/migration-center/standard/migrate-to-second-gen/python-differences) to learn about your migration options for legacy bundled services.\n\nThe `google.appengine.api.search` package includes the following function:\n\n\nget_indexes(namespace='', offset=None, limit=None, start_index_name=None, include_start_index=True, index_name_prefix=None, fetch_schema=False, deadline=None)\n\n\nReturn list of available indexes.\n\n\n| **Note:** There is also a corresponding asynchronous method, `get_indexes_async()`, which is identical except it returns a future. To get the actual result, call `get_result()` on the returned value; that call will block.\n\n\n:\n\n Arguments\n\n namespace\n\n : Namespace of indexes to return. If not set, the current namespace is used.\n\n offset\n\n : Offset of first index to return.\n\n limit\n\n : Number of indexes to return.\n\n start_index_name\n\n : Name of first index to return.\n\n include_start_index\n\n : If `true`, include index specified by `start_index_name` in results.\n\n index_name_prefix\n\n : Prefix for selecting indexes to return.\n\n fetch_schema\n\n : Specifies whether to fetch the schema for each index.\n\n deadline\n\n : Deadline for RPC call in seconds.\n\n Result value\n\n : [GetResponse](/appengine/docs/legacy/standard/python/search/getresponseclass) object representing a list of indexes. If fetch_schema==true, each index will contain its schema.\n\n Exceptions\n\n TypeError\n\n : Invalid argument passed.\n\n InternalError\n\n : Request failed on internal servers."]]