Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.47k stars 4.8k forks source link

Are attributes mandatory when reading from Azure Cognitive Search #19374

Closed AlexTorianyk closed 3 years ago

AlexTorianyk commented 3 years ago

Do I have to specify attributes like SimpleField on properties? I've copied my data by indexing from cosmos db, and I'm using the same model when trying to upload the documents but I'm getting 400. Copying over the object with those attributes included obviously works.

@Mohit-Chakraborty

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Wmengmsft, @MehaKaushik, @shurd

jsquire commented 3 years ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

AlexGhiondea commented 3 years ago

@AlexTorianyk you should specify those attributes on your models.

ghost commented 3 years ago

Hi @AlexTorianyk. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you believe that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.

ghost commented 3 years ago

Hi @AlexTorianyk, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.