I am adding documents to Azure Search Index VIA .NET Core console app. When I am adding new documents it over-writes the old document and finally index has only one document.
I am using IndexDocumentsBatch method to upload list of documents in to the index. When I upload 5 documents the index has only last document from the list of 5 documents.
var inputDocuments = DemoObjects();
var sampleDocuments = await GetSampleDocumentsAsync(openAIClient, inputDocuments);
await searchClient.IndexDocumentsAsync(IndexDocumentsBatch.Upload(sampleDocuments));
New contributor
user26459797 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.