# How to disable the default index mapping and index documents based on explicit mapping

**URL:** https://discuss.elastic.co/t/how-to-disable-the-default-index-mapping-and-index-documents-based-on-explicit-mapping/312719
**Category:** Elasticsearch
**Created:** [August 23, 2022, 3:07pm UTC](https://discuss.elastic.co/t/how-to-disable-the-default-index-mapping-and-index-documents-based-on-explicit-mapping/312719 "2022-08-23T15:07:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Kishan\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kishan_singh/32/100793_2.png) [@Kishan\_Singh](https://discuss.elastic.co/u/Kishan_Singh)
#### Post date: [August 23, 2022, 3:07pm UTC](https://discuss.elastic.co/t/how-to-disable-the-default-index-mapping-and-index-documents-based-on-explicit-mapping/312719/1 "2022-08-23T15:07:00Z")

</div>

The problem statement is this:

i want to index documents based only on the fields that i define in my explicit mapping configuration while creating an index.

i can see that even if i pass my own index mapping for specific fields, all the fields are getting indexed.

i thought `dynamic : false` might be helpful but from the docs, it's only relevant in case of new fields

please explain if there's a way to achieve this.

---

<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 20, 2022, 3:07pm UTC](https://discuss.elastic.co/t/how-to-disable-the-default-index-mapping-and-index-documents-based-on-explicit-mapping/312719/2 "2022-09-20T15:07:35Z")

</div>

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