Dear all,
the following body posted to http://localhost:9200/products/_bulk with appropriate content type
{ "products": ["apple", "dog", "puppy"],"user": "Sophia" }
{ "products": ["puppy","bicicle"], "user": "Jan" }
{ "products": ["apple","puppy"], "user" : "Ethan" }
is delivering
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Malformed action/metadata line [1], expected START_OBJECT or END_OBJECT but found [START_ARRAY]"
}
],
"type": "illegal_argument_exception",
"reason": "Malformed action/metadata line [1], expected START_OBJECT or END_OBJECT but found [START_ARRAY]"
},
"status": 400
}
However, the following body posted to http://localhost:9200/products/_doc/1
{
"products" : ["apple","dog","puppy"],
"user" : "Sophia"
}
works properly.
Can you please help ?
Thankyou