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 content outlines the JSON representation and fields for the response message of the `CompletionService.CompleteQuery` method."],["The `CompleteQuery` method's response includes an array of `querySuggestions` and a `tailMatchTriggered` boolean."],["Each `QuerySuggestion` contains a `suggestion` string representing the suggested query and an array of `completableFieldPaths`."],["`tailMatchTriggered` is set to true when returned suggestions only match the end of the query, assuming `includeTailSuggestions` was set to true and there were no suggestions that matched the full query."]]],[]]