Skip to content

GetQuerySuggestions

Source: src/AWS/Kendra/GetQuerySuggestions.ts

Runtime binding for the GetQuerySuggestions operation (IAM action kendra:GetQuerySuggestions), scoped to one Index.

Fetches typeahead query suggestions for a partial query string, based on the index’s query history and/or document fields. Provide the implementation with Effect.provide(AWS.Kendra.GetQuerySuggestionsHttp).

const suggest = yield* AWS.Kendra.GetQuerySuggestions(index);
const { Suggestions } = yield* suggest({ QueryText: "how to conf" });