# Why do I have mappings for types that do not exist in my index?

**URL:** <https://discuss.elastic.co/t/why-do-i-have-mappings-for-types-that-do-not-exist-in-my-index/28434>\
**Category:** Elasticsearch\
**Created:** [September 1, 2015, 1:34pm UTC](https://discuss.elastic.co/t/why-do-i-have-mappings-for-types-that-do-not-exist-in-my-index/28434 "2015-09-01T13:34:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpattonj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cpattonj/32/4365_2.png) [@cpattonj](https://discuss.elastic.co/u/cpattonj)\
**Post date:** [September 1, 2015, 1:34pm UTC](https://discuss.elastic.co/t/why-do-i-have-mappings-for-types-that-do-not-exist-in-my-index/28434/1 "2015-09-01T13:34:26Z")

</div>

The way I understand it, ES automatically determines the mappings as best it can when there is not a template match for a given type.

That's all fine and dandy but what about this situation?

[My Type Count Pastebin](http://pastebin.com/AQrahfXP "My Type Count")

It clearly reports that I have syslog and logs for types but my mappings reports different:

[The Mappings Pastebin](http://pastebin.com/BL0sgeVE "Mappings")

So my question is two part: where is elasticsearch getting these mappings from and why do they exist when the types do not exist in my index?

Thanks,  
ES newbie

---

<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:** [September 1, 2015, 10:31pm UTC](https://discuss.elastic.co/t/why-do-i-have-mappings-for-types-that-do-not-exist-in-my-index/28434/2 "2015-09-01T22:31:28Z")

</div>

Which types are you not expecting?

---

<div class="post-metadata">

**Author:** ![cpattonj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cpattonj/32/4365_2.png) [@cpattonj](https://discuss.elastic.co/u/cpattonj)\
**Post date:** [September 1, 2015, 10:52pm UTC](https://discuss.elastic.co/t/why-do-i-have-mappings-for-types-that-do-not-exist-in-my-index/28434/3 "2015-09-01T22:52:20Z")

</div>

Any type with a count of 0.

---

<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:** [September 1, 2015, 10:59pm UTC](https://discuss.elastic.co/t/why-do-i-have-mappings-for-types-that-do-not-exist-in-my-index/28434/4 "2015-09-01T22:59:27Z")

</div>

Ok, except there aren't an if that first link 😛

---

<div class="post-metadata">

**Author:** ![cpattonj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cpattonj/32/4365_2.png) [@cpattonj](https://discuss.elastic.co/u/cpattonj)\
**Post date:** [September 2, 2015, 12:49am UTC](https://discuss.elastic.co/t/why-do-i-have-mappings-for-types-that-do-not-exist-in-my-index/28434/5 "2015-09-02T00:49:09Z")

</div>

To self-answer: they come from templates, curl 'localhost:9200/\_template/\*?pretty'

---

<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:** [September 2, 2015, 12:52am UTC](https://discuss.elastic.co/t/why-do-i-have-mappings-for-types-that-do-not-exist-in-my-index/28434/6 "2015-09-02T00:52:15Z")

</div>

That makes sense, unlike my last post!

---

<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 5, 2017, 11:52pm UTC](https://discuss.elastic.co/t/why-do-i-have-mappings-for-types-that-do-not-exist-in-my-index/28434/7 "2017-07-05T23:52:48Z")

</div>


