Bulk Update on ElasticSearch using NEST
<p>I am trying to replacing the documents on ES using NEST. I am seeing the following options are available.</p>

<p>Option #1:</p>

<pre class="lang-cs prettyprint-override"><code>var documents = new List&lt;dynamic&gt;();

`var blkOperations = documents.Select(doc =&gt; new BulkIndexOperation&lt;T&gt;`(doc)).Cast&lt;IBulkOperation&gt;().ToList();   
var blkRequest = new BulkRequest()
{
    Refresh = true,
    Index = indexName,
    Type = typeName,
    Consistency = Consistency.One,
    Operations = blkOperations
};
var response1 = _client.Raw.BulkAsync&lt;T&gt;(blkRequest);
</code></pre>

<p>Option #2:</p>

<pre class="lang-cs prettyprint-override"><code>var descriptor = new BulkDescriptor();
foreach (var eachDoc in document)
{
    var doc = eachDoc;
    descriptor.Index&lt;T&gt;(i =&gt; i
        .Index(indexName)
        .Type(typeName)
        .Document(doc));
}
var response = await _client.Raw.BulkAsync&lt;T&gt;(descriptor);
</code></pre>

<p>So can anyone tell me which one is better or any other option to do bulk updates or deletes using NEST?</p>