Azure Search, Deleting A Document

Here is how to delete a document in your Azure Search Index collection, using Azure Search SDK for .Net version 1.1.0

Reference: https://msdn.microsoft.com/en-us/library/azure/microsoft.azure.search.models.indexbatch.delete.aspx#M:Microsoft.Azure.Search.Models.IndexBatch.Delete(System.Collections.Generic.IEnumerable{Microsoft.Azure.Search.Models.Document})

I shall put full run through tutorial on Azure Search .. soon soon.

OData Azure Search DateTime Format

Working with Azure Search and building filter string in OData, needing to feed current date and time, you can do;

string filter = “filterfield ge ” + DateTime.Now.ToString(“yyyy-MM-dd’T’HH:mm:ss-00:00”); ;

Reference: https://msdn.microsoft.com/en-us/library/azure/dn798921.aspx