[[["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-06-27 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCompleteQuery\u003c/code\u003e method provides query suggestions and indicates if they are tail suggestions, returning a list of \u003ccode\u003eQuerySuggestion\u003c/code\u003e objects and a boolean \u003ccode\u003etailMatchTriggered\u003c/code\u003e flag.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003equerySuggestions[]\u003c/code\u003e is an array of \u003ccode\u003eQuerySuggestion\u003c/code\u003e objects, where each object represents a suggested query, and the list is ordered by relevance, with the first result being the top suggestion.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003etailMatchTriggered\u003c/code\u003e is a boolean flag that, if \u003ccode\u003etrue\u003c/code\u003e, indicates all returned suggestions are tail suggestions, which occurs only if \u003ccode\u003eincludeTailSuggestions\u003c/code\u003e is \u003ccode\u003etrue\u003c/code\u003e in the request and no full query matches are found.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eQuerySuggestion\u003c/code\u003e contains a \u003ccode\u003esuggestion\u003c/code\u003e string, which represents the suggested query, and an optional \u003ccode\u003ecompletableFieldPaths[]\u003c/code\u003e array of strings, indicating the source of the suggestion from document fields.\u003c/p\u003e\n"]]],[],null,["# CompleteQueryResponse\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [QuerySuggestion](#QuerySuggestion)\n - [JSON representation](#QuerySuggestion.SCHEMA_REPRESENTATION)\n\nResponse message for [CompletionService.CompleteQuery](/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores/completeQuery#google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery) method.\n\nQuerySuggestion\n---------------\n\nSuggestions as search queries."]]