将curl.exe和product.json解压在同一目录后,在当前目录控制台输入
1 | curl -H "Content-Type: application/json" -XPOST "localhost:9200/how2java/product/_bulk?refresh" --data-binary "@products.json" |
将curl.exe和product.json解压在同一目录后,在当前目录控制台输入
1 | curl -H "Content-Type: application/json" -XPOST "localhost:9200/how2java/product/_bulk?refresh" --data-binary "@products.json" |