Push json array to elasticsearch

Hi Team,

I am trying to pushing the json array of data to Elasticsearch but its showing as error
How to push below json array to Elasticsearch:-

[
{
"operation": "create",
"senderid": "jmbaxi001",
"values": [
{
"VENDOR_ID": "9",
"VENDOR_SERVICE_ID": 15,
"IS_ACTIVE": 1
},
{
"VENDOR_ID": "8",
"VENDOR_SERVICE_ID": 17,
"IS_ACTIVE": 1
}
]
}
]

Each element of your array is a different object? If that's the case you need to split your array and insert each document independently with the index API or use the bulk API to send your documents.

This can be done directly through the HTTP APIs or with any Elasticsearch client SDK (python, go, javascript, etc).

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