# Upgrading the \_all field

**URL:** <https://discuss.elastic.co/t/upgrading-the-all-field/157323>\
**Category:** Elasticsearch\
**Created:** [November 19, 2018, 10:01am UTC](https://discuss.elastic.co/t/upgrading-the-all-field/157323 "2018-11-19T10:01:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndtreviv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ndtreviv/32/22494_2.png) [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Post date:** [November 19, 2018, 10:01am UTC](https://discuss.elastic.co/t/upgrading-the-all-field/157323/1 "2018-11-19T10:01:05Z")

</div>

We're currently operating a v2.4 cluster, and want to upgrade to v6.x  
As I understand it, v6.x wont read v2.4-created indices, but will read v5.6.9-created indices.

So the plan is go to to v5.6.9, reindex all the data into v5.6.9 created-indices, and then upgrade to v6.x. That way we only have to reindex once, which is good, because we have a LOT of data. (Like, seriously, a LOT)  
Bear with me.

In our v2.4 cluster we're using the `_all` field. v5.6.9 supports `_all`, but it's deprecated in v6.x, and the docs suggest using a `copy_to` field.

My question is: what should my 5.6.9 mapping look like with regards to the `_all` field to ensure that it's totally compatible with v6.x and later indices?

In my v6.x indices mappings I was going for something like this for an all field:

```auto
                "all": {
                    "type": "text",
                    "store": false
                }

```

with relevant fields having `copy_to: all`. Is that a good way of doing it?

Will `copy_to` in v5.6.9 work in the same way it does in v6.x?  
Are people expecting that when v7.x arrives it won't be able to read v5.x indices?

Thanks!

---

<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:** [December 17, 2018, 10:01am UTC](https://discuss.elastic.co/t/upgrading-the-all-field/157323/2 "2018-12-17T10:01:06Z")

</div>

Closed on December 17, 2018, 10:01am UTC

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