# Convert Mapping from 1.4 to 5.4

**URL:** <https://discuss.elastic.co/t/convert-mapping-from-1-4-to-5-4/90995>\
**Category:** Elasticsearch\
**Created:** [June 27, 2017, 4:12pm UTC](https://discuss.elastic.co/t/convert-mapping-from-1-4-to-5-4/90995 "2017-06-27T16:12:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![code\_blue](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@code\_blue](https://discuss.elastic.co/u/code_blue)\
**Post date:** [June 27, 2017, 4:12pm UTC](https://discuss.elastic.co/t/convert-mapping-from-1-4-to-5-4/90995/1 "2017-06-27T16:12:06Z")

</div>

We are currently converting ES 1.4 to 5.4 and facing an issue loading data for one of the Types.

Current Mapping in ES 1.4

```
{
"record-search": {
	"properties": {
		"value": {
			"properties": {
				"dynamic-field": {
					"type": "object",
					"enabled": false
				}
			}
		}

	}
}

```

}

The data contained in the Type **record-search** :

```
  {
"_source": {
	"value": {
		"dynamic-field": [
		  {
				"key": "Key 1",
				"keydata": ["Test Data 1", "Test Data 2"]
			},
			{
				"key": "Key 2",
				"keydata": [{
					"option": "some value",
					"searchType": "type name"
				}],
				"w": "Created By"
			}
		]
	}
}

```

}

The **keydata** field can contain an array of Objects or simple array of strings and it is dynamic. Also the **dynamic-field** can have different properties which may not not defined in mapping.

We are not able to load similar data in ES 5.4. Can some one let us know what needs to be changed in the mapping. We are facing an issue with **keydata** as it has different type of values like, array of objects/array of strings

---

<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 25, 2017, 4:12pm UTC](https://discuss.elastic.co/t/convert-mapping-from-1-4-to-5-4/90995/2 "2017-07-25T16:12:14Z")

</div>

Closed on July 25, 2017, 4:12pm UTC

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