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."],[[["The `CompleteQuery` method returns a list of `querySuggestions`, which are ordered with the top suggestion listed first."],["Each `querySuggestion` includes a string suggestion and, optionally, an array of completable field paths."],["The `tailMatchTriggered` boolean field indicates if all returned suggestions are considered tail suggestions, which only occurs when `includeTailSuggestions` is set to true in the request and no full query matches are found."],["The `completableFieldPaths` field within a `QuerySuggestion` identifies the unique document fields that sourced the suggestion, but is only available for the document-completable model."]]],[]]