Stay organized with collections Save and categorize content based on your preferences.
Client class for AppSearch. An instance of this class can be created using AppSearch
Provides a connection to all AppSearch databases the querying application has been granted access to.
Retrieves GenericDocument
documents, belonging to the specified package name and database name and identified by the namespace and ids in the request, from the GlobalSearchClient
database.
If the package or database doesn't exist or if the calling package doesn't have access, the gets will be handled as failures in an AppSearchBatchResult
object in the result.
Retrieves the collection of schemas most recently successfully provided to AppSearchClient.setSchema(SetSchemaRequest, String)
for any types belonging to the requested package and database that the caller has been granted access to.
If the requested package/database combination does not exist or the caller has not been granted access to it, then an empty GetSchemaResponse will be returned.
Parameters targetPackageName the package that owns the requestedAppSearchSchema
instances. databaseName the database that owns the requested AppSearchSchema
instances. Returns
GetSchemaResponse
containing the schemas that the caller has access to or an empty GetSchemaResponse if the request package and database does not exist, has not set a schema or contains no schemas that are accessible to the caller.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 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`GlobalSearchClient` provides a connection to all AppSearch databases the querying application has access to."],["It allows retrieval of documents by ID (`getByDocumentId`), schema information (`getSchema`), and searching across all accessible databases (`search`)."],["`reportSystemUsage` enables reporting document usage from system surfaces, influencing ranking strategies based on system interactions."],["This client is obtained using `AppSearch` and requires an API key via `AppSearchOptions`."]]],["The `GlobalSearchClient` allows interaction with AppSearch databases. Key actions include: retrieving documents by ID (`getByDocumentId`) from a specified package and database; getting schemas (`getSchema`) of accessible types; reporting document usage from system surfaces (`reportSystemUsage`); and searching across databases (`search`) with query strings and search specifications. `getByDocumentId` retrieves `GenericDocument` and if not found, it returns `AppSearchResult.RESULT_NOT_FOUND`. `getSchema` returns accessible schemas, or an empty response if the package/database is not accessible.\n"]]
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