API de índice masivo de Elasticsearch a través del punto final de descanso

Aquí está mi solicitud:

POST /_bulk
{ "index" : { "_index" : "test", "_type" : "type1", "_id" : "1" } }
{"firstname":"first_name1","lastname":"last_name1"},
{"firstname":"first_name2","lastname":"last_name2"},
{"firstname":"first_name3","lastname":"last_name3"}}

Aquí está el error:

{    "error": "IllegalArgumentException[Malformed action/metadata line [3], expected START_OBJECT or END_OBJECT but found

[VALOR_STRING]] "," estado ": 500}

Básicamente, cada documento es {"nombre": ___, "apellido": ____} No quiero incluirlos en un campo principal. ¿Qué me estoy perdiendo fundamentalmente?

Respuestas a la pregunta(2)

Su respuesta a la pregunta