kendra_get_query_suggestions: Fetches the queries that are suggested to your users

View source: R/kendra_operations.R

kendra_get_query_suggestionsR Documentation

Fetches the queries that are suggested to your users

Description

Fetches the queries that are suggested to your users.

See https://www.paws-r-sdk.com/docs/kendra_get_query_suggestions/ for full documentation.

Usage

kendra_get_query_suggestions(
  IndexId,
  QueryText,
  MaxSuggestionsCount = NULL,
  SuggestionTypes = NULL,
  AttributeSuggestionsConfig = NULL
)

Arguments

IndexId

[required] The identifier of the index you want to get query suggestions from.

QueryText

[required] The text of a user's query to generate query suggestions.

A query is suggested if the query prefix matches what a user starts to type as their query.

Amazon Kendra does not show any suggestions if a user types fewer than two characters or more than 60 characters. A query must also have at least one search result and contain at least one word of more than four characters.

MaxSuggestionsCount

The maximum number of query suggestions you want to show to your users.

SuggestionTypes

The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.

If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.

If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.

AttributeSuggestionsConfig

Configuration information for the document fields/attributes that you want to base query suggestions on.


paws.analytics documentation built on Sept. 11, 2023, 5:06 p.m.