# How to copy only mapping not data

**URL:** <https://discuss.elastic.co/t/how-to-copy-only-mapping-not-data/306415>\
**Category:** Elasticsearch\
**Tags:** reindex\
**Created:** [June 6, 2022, 12:09am UTC](https://discuss.elastic.co/t/how-to-copy-only-mapping-not-data/306415 "2022-06-06T00:09:28Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 6, 2022, 9:26am UTC](https://discuss.elastic.co/t/how-to-copy-only-mapping-not-data/306415/6 "2022-06-06T09:26:56Z")

</div>

It looks like you are asking about the same error here - [Error":{"root\_cause":[{"type":"mapper\_parsing\_exception","reason":"analyzer [analyzer\_keyword] not found for field](https://discuss.elastic.co/t/error-root-cause-type-mapper-parsing-exception-reason-analyzer-analyzer-keyword-not-found-for-field/306416) - so let's just keep this one about your original question in this topic

---

_[View the full topic](https://discuss.elastic.co/t/how-to-copy-only-mapping-not-data/306415)._
