elasticsearch 批量插入
2016-05-28 20:16
309 查看
将下面数据写入requests
curl -XPOST http://localhost:9200//_bulk --data-binary "@requests"。
{ "create": { "_index": "index1", "_type": "resource", "_id": 1 } } { "title": "周星驰最新电影" } { "create": { "_index": "index1", "_type": "resource", "_id": 2 } } { "title": "周星驰最好看的新电影" } { "create": { "_index": "index1", "_type": "resource", "_id": 3 } } { "title": "周星驰最新电影,最好,新电影" } { "create": { "_index": "index1", "_type": "resource", "_id": 4 } } { "title": "最最最最好的新新新新电影" } { "create": { "_index": "index1", "_type": "resource", "_id": 5 } } { "title": "I'm not happy about the foxes" }
curl -XPOST http://localhost:9200//_bulk --data-binary "@requests"。
相关文章推荐
- java基础,多段字符串验证后拼接在一起
- Hdu-5328 Problem Killer
- C语言链表常见用法
- ceph翻译 Ceph: A Scalable, High-Performance Distributed File System
- 使用WinDbg —— .NET篇 (七)
- 第一章 微服务架构实践
- 个人课程总结
- 学习进度条(第十三周)
- linux下的source命令与./区别
- androidstudio app:transformClassesWithDexForDebug问题解决
- Timespec :struct type Error c2011
- Eclipse和PyDev搭建完美Python开发环境
- Clion freopen
- nyoj 710 第六届河南省大学生程序设计竞赛B
- iphone访问限制密码忘记了怎么办
- python web framework
- os.execl() VS os.system()
- 第二期冲刺站立会议个人博客4(2016/5/28)
- HDU "巴卡斯杯" 中国大学生程序设计竞赛 - 女生专场 Combine String
- 多维数组应该注意的几点