Stay organized with collections Save and categorize content based on your preferences.
Class GetResponse
represents the results of methods invoked to return information about documents and indexes.
GetResponse
is defined in the module google.appengine.api.search
.
A GetResponse
object is returned from a call to either index.get_range() or search.get_indexes(). You can iterate over an instance of GetResponse
, which will return the members of its results property. The contents of the property are determined by the type of call that created the instance of GetResponse
.
For example, the following code shows how GetResponse
could be used to determine which documents were successfully deleted. In this case the iteration returns Documents.
response = index.get_range() for document in response: print "document ", documentConstructor
The constructor for class GetResponse
is defined as follows:
Construct an instance of class GetResponse
.
Argument
Initial value of its results
property.
Result value
A new instance of class GetResponse
.
Exceptions
A parameter has an invalid type, or an unknown attribute was passed.
A parameter has an invalid value.
An instance of class GetResponse
has the following property:
A list of results, whose type depends on the call that returns the object. If returning from a call to get_range(), results
is a list of Documents in descending order of their identifiers. If returning from a call to search.get_indexes(), results
is a list of Indexes.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["`GetResponse` represents the results obtained from methods that retrieve information about documents and indexes, particularly in the context of first-generation runtimes and potential migration to second-generation runtimes."],["A `GetResponse` object is returned by `index.get_range()` or `search.get_indexes()`, allowing iteration over the `results` property."],["The `GetResponse` class can be initialized with a `results` parameter using the constructor `GetResponse(results=None)`, and it raises `TypeError` or `ValueError` for invalid inputs."],["The `results` property of a `GetResponse` instance is a list, which either contains `Documents` when returned from `get_range()` or contains `Indexes` when returned from `get_indexes()`."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4