title: How to bulk Insert in Elasticsearch ignoring all errors that may occur in the process?
body: <p>I'm using <code>Elasticsearch</code> version 6.8.</p>
  
  <p>I need to insert ~10000 docs (from csv file) into existing and mapped index.</p>
  
  <p>I'm using <code>python</code> (version 3.7) code:</p>
  
  <pre><code>    import csv  
      es = Elasticsearch();
      from elasticsearch import helpers
      with open(file_path) as f:
          reader = csv.DictReader(f)
          helpers.bulk(es, reader, index=index_name, doc_type=doc_type)
  </code></pre>
  
  <p>But I'm getting error:</p>
  
  <pre><code>raise BulkIndexError("%i document(s) failed to index." % len(errors), errors)
  elasticsearch.helpers.errors.BulkIndexError: ('3 document(s) failed to index.'
  </code></pre>
  
  <p>The error occur because some values in the csv file has string value instead of float value.</p>
  
  <p>The bulk stop after 499 documents, and the application crash.</p>
  
  <p>Is there a way to bulk all the documents (~10000) with bulk and if there are errors (due to mapping or wrong values) tell <code>python</code> / <code>elastic</code> to ignore those documents and continue with the bulk operation ? </p>