ElasticSearch.Net 6.0.2 bulk insert

Hi

How can I do the bulk insert with ElasticSearch.Net 6.0.2 and NEST 6.0.2

currently with 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

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.

ElasticLowLevelClient objClient = new ElasticLowLevelClient(objSettings);

i am using lowlevel client

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