首页 > Windows开发 > 详细

Elasticsearch C# NEST IndexMany Children

时间:2017-12-28 19:30:44      阅读:451      评论:0      收藏:0      [点我收藏+]
foreach (IEnumerable<object> 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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!