Elasticsearch C# NEST IndexMany Children

2021-07-17 12:17

阅读:667

标签:document   arp   flow   tor   elastic   search   tostring   desc   nes   

foreach (IEnumerable batch in objects.Batch(1000))
            {
                var indexResponse = client.Bulk(s => s.IndexMany(batch,
                                         (bulkDescriptor, record) =>
                                           bulkDescriptor.Index("myindex").Parent(record.Id.ToString()).Document(record).Type("elasticchild").Id(record.Id.ToString())));

                Console.WriteLine(indexResponse);
            }

来源:https://stackoverflow.com/questions/39234432/elasticsearch-c-sharp-nest-indexmany-children

Elasticsearch C# NEST IndexMany Children

标签:document   arp   flow   tor   elastic   search   tostring   desc   nes   

原文地址:https://www.cnblogs.com/a-du/p/8137148.html

上一篇:CSS特殊性

下一篇:C#语法快速热身


评论


亲,登录后才可以留言!