You will have to properly restructure you input data file to follow elasticsearch's bulk index format.
If your curl looks like:
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/bank/_bulk?pretty' --data-binary @Bank_adv.json
then you will need to structure your file so that it looks like this:
{"index":{}}
{"text": "hello world"}
{"index":{}}
{"text": "goodbye"}
You need the index directive before each document. Each document must be on a single line.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…