简介:⼿把⼿交你批量导⼊数据
Bulk
- ES提供了⼀个叫 bulk 的API 来进⾏批量操作
- 批量导⼊数据
{"index": {"_index": "book", "_type": "_doc", "_id": 1}}
{"name": "权⼒的游戏"} {"index": {"_index": "book", "_type": "_doc", "_id": 2}}
{"name": "疯狂的⽯头"}
- POST bulk
curl -X POST "localhost:9200/_bulk" -H 'Content-Type: application/json'--data-binary @name