Hi All,
I have added one json key(column) and its value in azure cosmos db using the below code. The Cosmos DB gets updated correctly. Then i added the same key name in my Azure Search Index Field. However after running the indexer the key is coming but the vale
for that key is coming as null whereas the data is there in cosmos DB
using (DocumentClient documentClient = new DocumentClient(new Uri("https://xxxxxxxxx.documents.azure.com:443/"), "05Cu4kvPyRShxxxxxxxxsaf2GOVVWxxxxxxxxxxxxxobT5RW3pKVmyyA=="))
{
var docUri = UriFactory.CreateDocumentCollectionUri("dbname", "containername");
Document document = await documentClient.ReadDocumentAsync(UriFactory.CreateDocumentUri("dbname", "data", Convert.ToString(drES["Id"])), new RequestOptions { PartitionKey = new PartitionKey(Convert.ToString(drES["PKEY"])) });
{
document.SetPropertyValue("documenttype", "DocValue");
await documentClient.ReplaceDocumentAsync(document);
counter++;
}
}
Azure search index data
Why after indexing the data is coming as null in azure search?