[BUG] Suggest method returns InvalidRequestParameter when searching for a special character #48174
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Search
Type of issue
Other (describe below)
Description
I'm using SearchClient.SuggestAsync, and when searching for special or unsafe characters in the query, the following exception occurs:
I have already followed the recommendation to escape special characters using "\", but the exception remains the same.
Thats how I call
To reproduce, do a post to suggest with the body as shown below
Thank you in advance
Page URL
https://learn.microsoft.com/pt-br/dotnet/api/azure.search.documents.searchclient.suggestasync?view=azure-dotnet
Content source URL
https://github.com/Azure/azure-docs-sdk-dotnet/blob/master/xml/Azure.Search.Documents/SearchClient.xml
Document Version Independent Id
370b8e9b-6554-bf4f-a338-6c92ef7b41bf
Article author
@azure-sdk
Metadata
The text was updated successfully, but these errors were encountered: