Closed chadbr closed 4 years ago
I found a sample by digging through the sdk sample git history...
I think it would be valuable to have a sample like this in current sdk? Or am I swimming upstream on this one?
Thanks, Chad
Hi Chad,
There's no sample of building fields explicitly, but there is test code that you can look at: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Microsoft.Azure.Search/tests/Utilities/IndexFixture.cs
Let me know if that helps.
That does help. But I still feel like it needs to be in the samples?
@chadbr We'll be revisiting samples this year while we update our .NET SDK to meet the new Azure API Guidelines. I'll leave this issue open to track the explicit Field
construction case for the new samples.
Thank you -- Regards, Chad
A couple of years back - the index definitions changed to use attributes: https://github.com/Azure/azure-sdk-for-net/issues/2427
Is there a sample of doing it 'the old way'?
I have models from source code I don't control... I need to build indexes on them. Is there a sample of how to do this without having to rebuild the models with search / index attributes?