【Elasticsearch】bulk的使用

在之前测试中使用bulk批量添加数据的案例

在这里插入图片描述

打印$req

在这里插入图片描述

看文档

https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
在这里插入图片描述
看文档执行的结果
在这里插入图片描述

说明

所以说我们在使用bluk时我们的数据结构就是一个结构体,跟一组数据源
在处理数据结构需要处理的跟下面一样,俩组为一个结构体,这样的数据才可使用bulk批量添加
在这里插入图片描述
可以断点调试一下他的源码
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
驱动器 D 中的卷没有标签。 卷的序列号是 B837-9C57 D:\download\USB助手 源码 2008-12-30 08:44 . 2008-12-30 08:44 .. 2002-10-07 15:21 1,536 ChildFrm.cpp 2002-10-07 15:21 1,397 ChildFrm.h 2002-10-07 15:21 17,103 DevicesDlg.cpp 2002-10-07 15:21 2,330 DevicesDlg.h 2008-12-30 08:44 18 dir list.bat 2008-12-30 08:44 0 dir.txt 2002-10-07 15:21 5,469 Exporter.cpp 2002-10-07 15:21 2,098 Exporter.h 2002-10-07 15:21 4,947 ExportLogDlg.cpp 2002-10-07 15:21 1,712 ExportLogDlg.h 2002-10-07 15:21 6,135 MainFrm.cpp 2002-10-07 15:21 1,894 MainFrm.h 2002-10-07 15:21 2,954 MyMemFile.cpp 2002-10-07 15:21 1,682 MyMemFile.h 2002-10-07 15:21 1,582 ProgressStatusBar.cpp 2002-10-07 15:21 982 ProgressStatusBar.h 2002-10-07 15:21 4,754 ReadMe.txt 2002-10-07 15:21 2,271 ReadmeDlg.cpp 2002-10-07 15:21 1,264 ReadmeDlg.h 2008-12-30 08:41 Res 2002-10-07 15:21 4,735 Resource.h 2002-10-07 15:21 14,777 SetupDIMgr.cpp 2002-10-07 15:21 1,943 SetupDIMgr.h 2002-10-07 15:21 11,745 SnoopyPro.cpp 2002-10-07 15:21 7,277 SnoopyPro.dsp 2002-10-07 15:21 2,704 SnoopyPro.h 2002-10-07 15:21 23,501 SnoopyPro.rc 2002-10-07 15:21 704 SnoopyPro.reg 2008-12-11 19:15 16,773 SnoopyPro.vcproj 2002-10-07 15:21 211 StdAfx.cpp 2002-10-07 15:21 1,212 StdAfx.h 2002-10-07 15:21 57,986 URB.cpp 2002-10-07 15:21 9,642 URB.h 2002-10-07 15:21 3,613 URBLogListBox.cpp 2002-10-07 15:21 1,454 URBLogListBox.h 2002-10-07 15:21 13,776 URBLogListCtrl.cpp 2002-10-07 15:21 3,209 URBLogListCtrl.h 2002-10-07 15:21 3,192 URLStatic.cpp 2002-10-07 15:21 1,285 URLStatic.h 2002-10-07 15:21 11,998 USBLogDoc.cpp 2002-10-07 15:21 2,929 USBLogDoc.h 2002-10-07 15:21 28,721 USBLogView.cpp 2002-10-07 15:21 3,470 USBLogView.h 42 个文件 286,985 字节 3 个目录 12,592,160,768 可用字节
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

咔咔-

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值