我正在努力批量插入Elasticsearch,但每个教程/指南都说我正确地做到了。请注意,在执行此调用之前,我的索引根本不存在。
POST http://localhost:9200/indexnew3/whatever/_bulk
POST BODY
{ "index" : {}}
{ "make" : "Ford", "model" : "Car 1", "mileage" : 1000, "sale_price" : 3000 }
{ "index" : {}}
{ "make" : "Ford", "model" : "Car 2", "mileage" : 2000, "sale_price" : 5000 }
然后GET
到http://localhost:9200/indexnew3/whatever/_search
只显示Car 1
我正在通过邮递员执行此操作。我看不出有什么问题......