# Get only mapping / type names, not complete mapping definitions

**URL:** <https://discuss.elastic.co/t/get-only-mapping-type-names-not-complete-mapping-definitions/22491>\
**Category:** Elasticsearch\
**Created:** [March 3, 2015, 2:59pm UTC](https://discuss.elastic.co/t/get-only-mapping-type-names-not-complete-mapping-definitions/22491 "2015-03-03T14:59:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Klotz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_klotz/32/855_2.png) [@David\_Klotz](https://discuss.elastic.co/u/David_Klotz)\
**Post date:** [March 3, 2015, 2:59pm UTC](https://discuss.elastic.co/t/get-only-mapping-type-names-not-complete-mapping-definitions/22491/1 "2015-03-03T14:59:58Z")

</div>

Hi,

is there any way I could just get a list of the currently known mapping /  
type _names_ (not the complete mapping definitions) for an index?

I know I can use the get mapping API for this (get all mappings for an  
index, just extract / look at their names), but I have indices with quite a  
lot of mappings (one type per user "pattern") and for performance / memory  
reasons it would be nice to be able to just get the currently mapped type  
names in situations where I need just that.

Cheers,  
David

--  
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/8a2a714b-4e7a-4c70-95a7-b06ba82766ab%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8a2a714b-4e7a-4c70-95a7-b06ba82766ab%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:28am UTC](https://discuss.elastic.co/t/get-only-mapping-type-names-not-complete-mapping-definitions/22491/2 "2017-07-06T00:28:51Z")

</div>


