# Elasticsearch 5.x indices in Elasticsearch 6

**URL:** <https://discuss.elastic.co/t/elasticsearch-5-x-indices-in-elasticsearch-6/199133>\
**Category:** Elasticsearch\
**Created:** [September 11, 2019, 7:48pm UTC](https://discuss.elastic.co/t/elasticsearch-5-x-indices-in-elasticsearch-6/199133 "2019-09-11T19:48:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shradhatx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shradhatx/32/45398_2.png) [@shradhatx](https://discuss.elastic.co/u/shradhatx)\
**Post date:** [September 11, 2019, 7:48pm UTC](https://discuss.elastic.co/t/elasticsearch-5-x-indices-in-elasticsearch-6/199133/1 "2019-09-11T19:48:13Z")

</div>

As per documents-  
Elasticsearch 6.0 can read indices created in version 5.0

Index has a parent-child relationship with multiple types. I verified that data in the index created in v5 is read properly in v6. I also got the correct search results.

Next I want to confirm if documents can be added to the v5 index and searched by the same query as used in v5.

My findings - I could insert and search documents in indices but do not get the correct result with the query.

MY question - what is recommended? Are the indices of prior version read-only in the next version?

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [September 13, 2019, 2:12pm UTC](https://discuss.elastic.co/t/elasticsearch-5-x-indices-in-elasticsearch-6/199133/2 "2019-09-13T14:12:45Z")

</div>

Adding documents to indices created with the previous major version is supported, maybe you found a bug. Can you share how you tested with us so that we can try to reproduce?

---

<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:** [October 11, 2019, 2:12pm UTC](https://discuss.elastic.co/t/elasticsearch-5-x-indices-in-elasticsearch-6/199133/3 "2019-10-11T14:12:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
