title: how to do bulk indexing to elasticsearch from python
body: <p>I have nearly 10K json documents and i want to push all this documents to elasticsearch by using elasticsearch bulk api from python.
  I went through some docs but didn't get any solutions.</p>
  
  <pre><code>result=es.bulk(index="index1", doc_type="index123", body=jsonvalue)
  helpers.bulk(es,doc) 
  </code></pre>
  
  <p>i tried both but no result,i am getting this error</p>
  
  <pre><code>elasticsearch.exceptions.RequestError: TransportError(400, u'illegal_argument_exception', u'Malformed action/metadata line [1], expected START_OBJECT or END_OBJECT but found [VALUE_STRING]')
  </code></pre>
  
  <p>please help me</p>