Json object containing json array need to insert using bulk in an index

need to insert json object to an index.i know it is a silly question but not able to get rid of that.sample json data:
"sourceNumber": 6,
"sourceName": "Trade Days",
"result": "false"
"sourceNumber": 6,
"sourceName": "Period Start",
"result": "true"

I have tried using curl but it is not working. Thanking you in advance.

I don't think I understood the question.

above mention json document example need to push in elastic search index using bulk API. How can we do that.

I don't know what you did exactly, what is the error message...

But if you are using the bulk API you must respect the bulk format which is described in the documentation.

1 Like

Yes, you were correct was wrong in bulk format. Corrected it and now successfully post it.Thank you for your help.

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