# ElasticSearch.Net 6.0.2 bulk insert

**URL:** <https://discuss.elastic.co/t/elasticsearch-net-6-0-2-bulk-insert/126703>\
**Category:** Elasticsearch\
**Created:** [April 4, 2018, 9:16am UTC](https://discuss.elastic.co/t/elasticsearch-net-6-0-2-bulk-insert/126703 "2018-04-04T09:16:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aneesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aneesh/32/37819_2.png) [@aneesh](https://discuss.elastic.co/u/aneesh)\
**Post date:** [April 4, 2018, 9:17am UTC](https://discuss.elastic.co/t/elasticsearch-net-6-0-2-bulk-insert/126703/1 "2018-04-04T09:17:00Z")

</div>

Hi

How can I do the bulk insert with [ElasticSearch.Net](http://ElasticSearch.Net) 6.0.2 and NEST 6.0.2

currently with [ElasticSearch.Net](http://ElasticSearch.Net) 5.5.0 and NEST 5.5.0, using following way

```
lstRowsToCache.Add(
                                new
                                {
                                    index =
                                    new
                                    {
                                        _index = strIndex,
                                        _type = strType,
                                        _id = strId,
                                        version = DateTime.Now.Ticks.ToString(),
                                        version_type = "external"
                                    }
                                });
                            lstRowsToCache.Add(data);

indexResponse = objClient.Bulk<Stream>(lstRowsToCache);

```

Thanks  
Aneesh L

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [April 6, 2018, 8:36am UTC](https://discuss.elastic.co/t/elasticsearch-net-6-0-2-bulk-insert/126703/2 "2018-04-06T08:36:02Z")

</div>

Could you provide some more details e.g.

what is `objClient`?

- Is it `NEST.ElasticClient`?
- Is it `Elasticsearch.Net.ElasticLowLevelClient`?

It looks like the latter, the low level client, but more information will help.

---

<div class="post-metadata">

**Author:** ![aneesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aneesh/32/37819_2.png) [@aneesh](https://discuss.elastic.co/u/aneesh)\
**Post date:** [April 6, 2018, 8:50am UTC](https://discuss.elastic.co/t/elasticsearch-net-6-0-2-bulk-insert/126703/3 "2018-04-06T08:50:33Z")

</div>

ElasticLowLevelClient objClient = new ElasticLowLevelClient(objSettings);

i am using lowlevel client

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 4, 2018, 8:50am UTC](https://discuss.elastic.co/t/elasticsearch-net-6-0-2-bulk-insert/126703/4 "2018-05-04T08:50:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
