# How to set index.mapping.ignore\_malformed to true, when using bulk api

**URL:** <https://discuss.elastic.co/t/how-to-set-index-mapping-ignore-malformed-to-true-when-using-bulk-api/194583>\
**Category:** Elasticsearch\
**Created:** [August 9, 2019, 9:59am UTC](https://discuss.elastic.co/t/how-to-set-index-mapping-ignore-malformed-to-true-when-using-bulk-api/194583 "2019-08-09T09:59:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saurabh\_Sharma\_IIT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurabh_sharma_iit/32/48921_2.png) [@Saurabh\_Sharma\_IIT](https://discuss.elastic.co/u/Saurabh_Sharma_IIT)\
**Post date:** [August 9, 2019, 9:59am UTC](https://discuss.elastic.co/t/how-to-set-index-mapping-ignore-malformed-to-true-when-using-bulk-api/194583/1 "2019-08-09T09:59:55Z")

</div>

Hi, I am experimenting with bulk api, and want to set "index.mapping.ignore\_malformed": true for all new indexes created using bulk api.  
What is the best way to set ignore\_malformed to true when using bulk api.  
Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 6, 2019, 9:59am UTC](https://discuss.elastic.co/t/how-to-set-index-mapping-ignore-malformed-to-true-when-using-bulk-api/194583/2 "2019-09-06T09:59:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
