# Command to rename a type. Not a field

**URL:** <https://discuss.elastic.co/t/command-to-rename-a-type-not-a-field/14290>\
**Category:** Elasticsearch\
**Created:** [November 6, 2013, 3:40pm UTC](https://discuss.elastic.co/t/command-to-rename-a-type-not-a-field/14290 "2013-11-06T15:40:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kevins/32/946_2.png) [@kevins](https://discuss.elastic.co/u/kevins)\
**Post date:** [November 6, 2013, 3:40pm UTC](https://discuss.elastic.co/t/command-to-rename-a-type-not-a-field/14290/1 "2013-11-06T15:40:43Z")

</div>

It it possible for me to rename

localhost:9200/myindex/typeA

to

localhost:9200/myindex/typeB

Thank you. I can't seem to find this in documentation.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 6, 2013, 3:43pm UTC](https://discuss.elastic.co/t/command-to-rename-a-type-not-a-field/14290/2 "2013-11-06T15:43:13Z")

</div>

No. You have to read your documents from typeA and reindex to typeB

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

6 novembre 2013 at 16:40:46, Kevin S ([kevinsteger@gmail.com](mailto:kevinsteger@gmail.com)) a écrit:

It it possible for me to rename

localhost:9200/myindex/typeA

to

localhost:9200/myindex/typeB

## Thank you. I can't seem to find this in documentation.

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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
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, 2:08am UTC](https://discuss.elastic.co/t/command-to-rename-a-type-not-a-field/14290/3 "2017-07-06T02:08:32Z")

</div>


