CompleteQueryResponse
Stay organized with collections
Save and categorize content based on your preferences.
JSON representation |
{
"querySuggestions": [
{
object (QuerySuggestion )
}
],
"tailMatchTriggered": boolean
} |
Fields |
querySuggestions[] |
object (QuerySuggestion )
Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
|
tailMatchTriggered |
boolean
True if the returned suggestions are all tail suggestions. For tail matching to be triggered, includeTailSuggestions in the request must be true and there must be no suggestions that match the full query.
|
QuerySuggestion
Suggestions as search queries.
JSON representation |
{
"suggestion": string,
"completableFieldPaths": [
string
]
} |
Fields |
suggestion |
string
The suggestion for the query.
|
completableFieldPaths[] |
string
The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model.
|
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-03-03 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-03-03 UTC."],[[["This document describes the JSON representation and fields for the response of the `CompletionService.CompleteQuery` method, which provides query suggestions."],["The `CompleteQuery` response includes a list of `querySuggestions` objects and a boolean field, `tailMatchTriggered`, indicating if the suggestions are tail suggestions."],["Each `QuerySuggestion` object contains a `suggestion` string and a list of `completableFieldPaths` strings, where the suggestion provides a search query and the paths indicate the source of the suggestion."],["The `querySuggestions` list in the response is ordered, with the first result representing the top suggestion."]]],[]]