title: Elasticsearch bulk index api via rest endpoint
body: <p>Here is my request:</p>
  
  <pre><code>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"}}
  </code></pre>
  
  <p>Here is the error:</p>
  
  <blockquote>
  <pre><code>{    "error": "IllegalArgumentException[Malformed action/metadata line [3], expected START_OBJECT or END_OBJECT but found
  </code></pre>
    
    <p>[VALUE_STRING]]",    "status": 500 }</p>
  </blockquote>
  
  <p>Basically, each document is {"firstname": ___, "lastname": ____} I don't want to wrap them into a parent field. What am I fundamentally missing?</p>