Interface GetQuerySuggestionsRequest.Builder

    • Method Detail

      • indexId

        GetQuerySuggestionsRequest.Builder indexId​(String indexId)

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

        Parameters:
        indexId - The identifier of the index you want to get query suggestions from.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • queryText

        GetQuerySuggestionsRequest.Builder queryText​(String queryText)

        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.

        Parameters:
        queryText - 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:
        Returns a reference to this object so that method calls can be chained together.
      • maxSuggestionsCount

        GetQuerySuggestionsRequest.Builder maxSuggestionsCount​(Integer maxSuggestionsCount)

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

        Parameters:
        maxSuggestionsCount - The maximum number of query suggestions you want to show to your users.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • suggestionTypesWithStrings

        GetQuerySuggestionsRequest.Builder suggestionTypesWithStrings​(Collection<String> 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • suggestionTypesWithStrings

        GetQuerySuggestionsRequest.Builder suggestionTypesWithStrings​(String... 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • suggestionTypes

        GetQuerySuggestionsRequest.Builder suggestionTypes​(Collection<SuggestionType> 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • suggestionTypes

        GetQuerySuggestionsRequest.Builder suggestionTypes​(SuggestionType... 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributeSuggestionsConfig

        GetQuerySuggestionsRequest.Builder attributeSuggestionsConfig​(AttributeSuggestionsGetConfig attributeSuggestionsConfig)

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

        Parameters:
        attributeSuggestionsConfig - Configuration information for the document fields/attributes that you want to base query suggestions on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.