Class: Aws::Kendra::Types::GetQuerySuggestionsRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#attribute_suggestions_configTypes::AttributeSuggestionsGetConfig

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



5748
5749
5750
5751
5752
5753
5754
5755
5756
# File 'gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb', line 5748

class GetQuerySuggestionsRequest < Struct.new(
  :index_id,
  :query_text,
  :max_suggestions_count,
  :suggestion_types,
  :attribute_suggestions_config)
  SENSITIVE = []
  include Aws::Structure
end

#index_idString

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

Returns:

  • (String)


5748
5749
5750
5751
5752
5753
5754
5755
5756
# File 'gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb', line 5748

class GetQuerySuggestionsRequest < Struct.new(
  :index_id,
  :query_text,
  :max_suggestions_count,
  :suggestion_types,
  :attribute_suggestions_config)
  SENSITIVE = []
  include Aws::Structure
end

#max_suggestions_countInteger

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

Returns:

  • (Integer)


5748
5749
5750
5751
5752
5753
5754
5755
5756
# File 'gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb', line 5748

class GetQuerySuggestionsRequest < Struct.new(
  :index_id,
  :query_text,
  :max_suggestions_count,
  :suggestion_types,
  :attribute_suggestions_config)
  SENSITIVE = []
  include Aws::Structure
end

#query_textString

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.

Returns:

  • (String)


5748
5749
5750
5751
5752
5753
5754
5755
5756
# File 'gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb', line 5748

class GetQuerySuggestionsRequest < Struct.new(
  :index_id,
  :query_text,
  :max_suggestions_count,
  :suggestion_types,
  :attribute_suggestions_config)
  SENSITIVE = []
  include Aws::Structure
end

#suggestion_typesArray<String>

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.

Returns:

  • (Array<String>)


5748
5749
5750
5751
5752
5753
5754
5755
5756
# File 'gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb', line 5748

class GetQuerySuggestionsRequest < Struct.new(
  :index_id,
  :query_text,
  :max_suggestions_count,
  :suggestion_types,
  :attribute_suggestions_config)
  SENSITIVE = []
  include Aws::Structure
end