# Updating document type

**URL:** <https://discuss.elastic.co/t/updating-document-type/50242>\
**Category:** Elasticsearch\
**Created:** [May 17, 2016, 4:05pm UTC](https://discuss.elastic.co/t/updating-document-type/50242 "2016-05-17T16:05:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay224](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@jay224](https://discuss.elastic.co/u/jay224)\
**Post date:** [May 17, 2016, 4:05pm UTC](https://discuss.elastic.co/t/updating-document-type/50242/1 "2016-05-17T16:05:39Z")

</div>

Currently we have index with only one document type. The document structure is very different for different type of data sets. It will be helpful to group related documents in separate type of documents. wondering can I update \_type property of document based on query?

---

<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:** [May 17, 2016, 4:07pm UTC](https://discuss.elastic.co/t/updating-document-type/50242/2 "2016-05-17T16:07:26Z")

</div>

Only by reindexing the document.

You'd be _much_ better off splitting this into different indices.

---

<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, 10:50pm UTC](https://discuss.elastic.co/t/updating-document-type/50242/3 "2017-07-05T22:50:56Z")

</div>


