# Index Mappings Compare

**URL:** <https://discuss.elastic.co/t/index-mappings-compare/220010>\
**Category:** Elasticsearch\
**Created:** [February 19, 2020, 3:51pm UTC](https://discuss.elastic.co/t/index-mappings-compare/220010 "2020-02-19T15:51:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aniaks](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@aniaks](https://discuss.elastic.co/u/aniaks)\
**Post date:** [February 19, 2020, 3:51pm UTC](https://discuss.elastic.co/t/index-mappings-compare/220010/1 "2020-02-19T15:51:13Z")

</div>

Is there a way to compare the index mappings between 2 indices?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [February 20, 2020, 8:28am UTC](https://discuss.elastic.co/t/index-mappings-compare/220010/2 "2020-02-20T08:28:46Z")

</div>

There is no built-in way. Best would be to retrieve the two mappings, probably pretty-print them, and then diff them. You could also use JQ for that, and there are a few json compare tools out there, but I have not tried any of them.

---

<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:** [March 19, 2020, 8:28am UTC](https://discuss.elastic.co/t/index-mappings-compare/220010/3 "2020-03-19T08:28:46Z")

</div>

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