AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

Calls the Amazon Kendra GetQuerySuggestions API operation.

Syntax

Get-KNDRQuerySuggestion
-IndexId <String>
-AttributeSuggestionsConfig_AdditionalResponseAttribute <String[]>
-AttributeSuggestionsConfig_AttributeFilter <AttributeFilter>
-UserContext_DataSourceGroup <DataSourceGroup[]>
-UserContext_Group <String[]>
-MaxSuggestionsCount <Int32>
-QueryText <String>
-AttributeSuggestionsConfig_SuggestionAttribute <String[]>
-SuggestionType <String[]>
-UserContext_Token <String>
-UserContext_UserId <String>
-Select <String>
-PassThru <SwitchParameter>
-ClientConfig <AmazonKendraConfig>

Description

Fetches the queries that are suggested to your users. GetQuerySuggestions is currently not supported in the Amazon Web Services GovCloud (US-West) region.

Parameters

-AttributeSuggestionsConfig_AdditionalResponseAttribute <String[]>
The list of additional document field/attribute keys or field names to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAttributeSuggestionsConfig_AdditionalResponseAttributes
-AttributeSuggestionsConfig_AttributeFilter <AttributeFilter>
Filters the search results based on document fields/attributes.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-AttributeSuggestionsConfig_SuggestionAttribute <String[]>
The list of document field/attribute keys or field names to use for query suggestions. If the content within any of the fields match what your user starts typing as their query, then the field content is returned as a query suggestion.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAttributeSuggestionsConfig_SuggestionAttributes
-ClientConfig <AmazonKendraConfig>
Amazon.PowerShell.Cmdlets.KNDR.AmazonKendraClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-IndexId <String>
The identifier of the index you want to get query suggestions from.
Required?True
Position?1
Accept pipeline input?True (ByValue, ByPropertyName)
-MaxSuggestionsCount <Int32>
The maximum number of query suggestions you want to show to your users.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-PassThru <SwitchParameter>
Changes the cmdlet behavior to return the value passed to the IndexId parameter. The -PassThru parameter is deprecated, use -Select '^IndexId' instead. This parameter will be removed in a future version.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-QueryText <String>
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.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is '*'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.Kendra.Model.GetQuerySuggestionsResponse). Specifying the name of a property of type Amazon.Kendra.Model.GetQuerySuggestionsResponse will result in that property being returned. Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-SuggestionType <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.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSuggestionTypes
-UserContext_DataSourceGroup <DataSourceGroup[]>
The list of data source groups you want to filter search results based on groups' access to documents in that data source.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAttributeSuggestionsConfig_UserContext_DataSourceGroups
-UserContext_Group <String[]>
The list of groups you want to filter search results based on the groups' access to documents.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAttributeSuggestionsConfig_UserContext_Groups
-UserContext_Token <String>
The user context token for filtering search results for a user. It must be a JWT or a JSON token.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAttributeSuggestionsConfig_UserContext_Token
-UserContext_UserId <String>
The identifier of the user you want to filter search results based on their access to documents.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAttributeSuggestionsConfig_UserContext_UserId

Common Credential and Region Parameters

-AccessKey <String>
The AWS access key for the user account. This can be a temporary access key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAK
-Credential <AWSCredentials>
An AWSCredentials object instance containing access and secret key information, and optionally a token for session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-EndpointUrl <String>
The endpoint to make the call against.Note: This parameter is primarily for internal AWS use and is not required/should not be specified for normal usage. The cmdlets normally determine which endpoint to call based on the region specified to the -Region parameter or set as default in the shell (via Set-DefaultAWSRegion). Only specify this parameter if you must direct the call to a specific custom endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkCredential <PSCredential>
Used with SAML-based authentication when ProfileName references a SAML role profile. Contains the network credentials to be supplied during authentication with the configured identity provider's endpoint. This parameter is not required if the user's default network identity can or should be used during authentication.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-ProfileLocation <String>
Used to specify the name and location of the ini-format credential file (shared with the AWS CLI and other AWS SDKs)If this optional parameter is omitted this cmdlet will search the encrypted credential file used by the AWS SDK for .NET and AWS Toolkit for Visual Studio first. If the profile is not found then the cmdlet will search in the ini-format credential file at the default location: (user's home directory)\.aws\credentials.If this parameter is specified then this cmdlet will only search the ini-format credential file at the location given.As the current folder can vary in a shell or during script execution it is advised that you use specify a fully qualified path instead of a relative path.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAWSProfilesLocation, ProfilesLocation
-ProfileName <String>
The user-defined name of an AWS credentials or SAML-based role profile containing credential information. The profile is expected to be found in the secure credential file shared with the AWS SDK for .NET and AWS Toolkit for Visual Studio. You can also specify the name of a profile stored in the .ini-format credential file used with the AWS CLI and other AWS SDKs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesStoredCredentials, AWSProfileName
-Region <Object>
The system name of an AWS region or an AWSRegion instance. This governs the endpoint that will be used when calling service operations. Note that the AWS resources referenced in a call are usually region-specific.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRegionToCall
-SecretKey <String>
The AWS secret key for the user account. This can be a temporary secret key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSK, SecretAccessKey
-SessionToken <String>
The session token if the access and secret keys are temporary session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesST

Outputs

This cmdlet returns an Amazon.Kendra.Model.GetQuerySuggestionsResponse object containing multiple properties. The object can also be referenced from properties attached to the cmdlet entry in the $AWSHistory stack.

Supported Version

AWS Tools for PowerShell: 2.x.y.z