# Reindex to version 6 and lost nested type

**URL:** <https://discuss.elastic.co/t/reindex-to-version-6-and-lost-nested-type/171740>\
**Category:** Elasticsearch\
**Created:** [March 11, 2019, 11:31am UTC](https://discuss.elastic.co/t/reindex-to-version-6-and-lost-nested-type/171740 "2019-03-11T11:31:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![magorbe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magorbe/32/36871_2.png) [@magorbe](https://discuss.elastic.co/u/magorbe)\
**Post date:** [March 11, 2019, 11:31am UTC](https://discuss.elastic.co/t/reindex-to-version-6-and-lost-nested-type/171740/1 "2019-03-11T11:31:49Z")

</div>

Hello !! last week I did reindex, from version 2 to version 6 and when I compare the new mapping with the old I find some diferences, the most important the no nested type. It's everything ok ? thanks !!!

The old mapping :

```
"analysis": {
                        "type": "nested",
                        "properties": {
                            "id": {
                                "type": "string",
                                "index": "not_analyzed"
                            },
                            "panel": {
                                "type": "string"
                            },
                            "pipeline": {
                                "type": "string"
                            },
                            "project": {
                                "type": "string"
                            },
                            "sample": {
                                "type": "nested",
                                "properties": {
                                    "affectedRegion": {
                                        "type": "nested",
                                        "properties": {
                                            "alternative": {
                                                "type": "string"
                                            },
                                            "chromosome": {
                                                "type": "string"
                                            },
                                            "id": {
                                                "type": "string",
                                                "index": "not_analyzed"
                                            },
                                            "position": {
                                                "type": "double"
                                            },
                                            "reference": {
                                                "type": "string"
                                            }
                                        }
                                    }

```

The new mapping :

```
"analysis": {
                        "properties": {
                            "id": {
                                "type": "text",
                                "fields": {
                                    "keyword": {
                                        "type": "keyword",
                                        "ignore_above": 256
                                    }
                                }
                            },
                            "panel": {
                                "type": "text",
                                "fields": {
                                    "keyword": {
                                        "type": "keyword",
                                        "ignore_above": 256
                                    }
                                }
                            },
                            "pipeline": {
                                "type": "text",
                                "fields": {
                                    "keyword": {
                                        "type": "keyword",
                                        "ignore_above": 256
                                    }
                                }
                            },
                            "project": {
                                "type": "text",
                                "fields": {
                                    "keyword": {
                                        "type": "keyword",
                                        "ignore_above": 256
                                    }
                                }
                            },
                            "sample": {
                                "properties": {
                                    "affected_region": {
                                        "properties": {
                                            "id": {
                                                "type": "text",
                                                "fields": {
                                                    "keyword": {
                                                        "type": "keyword",
                                                        "ignore_above": 256
                                                    }
                                                }
                                            }
                                        }
                                    }

```

Why I lost all nested ?? Can I add the nested option now ? 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:** [April 8, 2019, 11:35am UTC](https://discuss.elastic.co/t/reindex-to-version-6-and-lost-nested-type/171740/2 "2019-04-08T11:35:17Z")

</div>

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