capabilities.work

Query Suggestions then Search

A 2-step recipe with Amazon Kendra. We can help you get access.

Recipe · 2 steps

Query Suggestions then Search

Fetch query suggestions for a partial query, then search with the top suggestion.

  1. Fetch the query suggestions Kendra would offer for the partial query text based on prior query history.
  2. Run a full search query using the top suggested phrase so the results reflect the completed query the user most likely intended.
What you'll need to have ready
  • indexId: The identifier of the index to suggest and search against.
  • partialQueryText: The partial query text typed so far to generate suggestions for.
  • maxSuggestionsCount: The maximum number of suggestions to return.
For your developer

Arazzo workflow amazon-kendra:query-suggestions-then-search, 2 operations: GetQuerySuggestions → Query. Specs on APIs.io.