# ElasticSearch mapping vs JSON Schema

**URL:** <https://discuss.elastic.co/t/elasticsearch-mapping-vs-json-schema/15340>\
**Category:** Elasticsearch\
**Created:** [January 21, 2014, 11:00am UTC](https://discuss.elastic.co/t/elasticsearch-mapping-vs-json-schema/15340 "2014-01-21T11:00:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jan\_javorek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_javorek/32/1851_2.png) [@jan\_javorek](https://discuss.elastic.co/u/jan_javorek)\
**Post date:** [January 21, 2014, 11:00am UTC](https://discuss.elastic.co/t/elasticsearch-mapping-vs-json-schema/15340/1 "2014-01-21T11:00:54Z")

</div>

Hello,

I am just looking at mapping files for ElasticSearch and they look a lot  
like JSON schema. Unfortunately, I could not find any official information  
about a relation between those two formats. Are ES mapping files subset of  
JSON schema? Superset? Are they two totally different things which just  
happened to look similar?

Regards,  
Honza

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/da84dd37-ed24-45ab-b886-9fdafff3f261%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/da84dd37-ed24-45ab-b886-9fdafff3f261%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [January 21, 2014, 4:42pm UTC](https://discuss.elastic.co/t/elasticsearch-mapping-vs-json-schema/15340/2 "2014-01-21T16:42:39Z")

</div>

Honza,

They are totally different. Very simple examples of ES mappings might  
appear similar to JSON schema. But ES mappings also allow you to define  
analyzers and tokenizers and character filters and stop words and stemming  
and time to live and such that are needed for search.

Brian

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8a4341c7-a81a-4fcf-800c-a0a3c747d66e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8a4341c7-a81a-4fcf-800c-a0a3c747d66e%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 1:55am UTC](https://discuss.elastic.co/t/elasticsearch-mapping-vs-json-schema/15340/3 "2017-07-06T01:55:34Z")

</div>


