Bulk API doesn't do anything but passes command

So I would like to add a JSON document using the bulk API.

In terminal I use the command:

curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/some_index/keyword/_bulk?pretty' --data-binary @ComparisonRequestTest.json

each entry in the JSON file is like this:

{"index":{"_id":"52287a4ee4b07193f703c23f"}}
{"className":"someClass","consumerType":"residential","electricityRequest":{"consumptionDayValue":"600"}

when I do the command, no errors and no messages, the terminal goes to the next prompt immediately. However, my file is 70MB so I don't think that it can realistically go so fast. Indeed, in Kibana the index is not created.

PS: If I do the same command on a smaller file, it works. So Maybe there is a limit to the size we can download.

Yes there are some limits.
You should split the load into small bulks.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.