# Restore 1.5 snapshot to 2.3 - mappings float \<--\> double issue

**URL:** https://discuss.elastic.co/t/restore-1-5-snapshot-to-2-3-mappings-float-double-issue/51002
**Category:** Elasticsearch
**Created:** [May 26, 2016, 12:13am UTC](https://discuss.elastic.co/t/restore-1-5-snapshot-to-2-3-mappings-float-double-issue/51002 "2016-05-26T00:13:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dejavu](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@dejavu](https://discuss.elastic.co/u/dejavu)
#### Post date: [May 26, 2016, 12:13am UTC](https://discuss.elastic.co/t/restore-1-5-snapshot-to-2-3-mappings-float-double-issue/51002/1 "2016-05-26T00:13:19Z")

</div>

I am trying to restore a snapshot from ES 1.5 to 2.3 but getting the following error. I did look at the breaking changes for mapping but could not figure why a field salary which was float before fails to restore with the following error

```
{
	"error": {
		"root_cause": [{
			"type": "snapshot_restore_exception",
			"reason": "[domain-restore-repo:es15-snapshot] cannot restore index [logs] because it cannot be upgraded"
		}],
		"type": "snapshot_restore_exception",
		"reason": "[domain-restore-repo:es15-snapshot] cannot restore index [logs] because it cannot be upgraded",
		"caused_by": {
			"type": "illegal_state_exception",
			"reason": "unable to upgrade the mappings for the index [logs], reason: [mapper [salary] cannot be changed from type [float] to [double]]",
			"caused_by": {
				"type": "illegal_argument_exception",
				"reason": "mapper [salary] cannot be changed from type [float] to [double]"
			}
		}
	},
	"status": 500
}
```

---

<div class="post-metadata">

### Author: ![dejavu](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@dejavu](https://discuss.elastic.co/u/dejavu)
#### Post date: [June 2, 2016, 1:36am UTC](https://discuss.elastic.co/t/restore-1-5-snapshot-to-2-3-mappings-float-double-issue/51002/2 "2016-06-02T01:36:41Z")

</div>

Any answers/suggestions on what the root cause could be and how to debug this further?

---

<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:47pm UTC](https://discuss.elastic.co/t/restore-1-5-snapshot-to-2-3-mappings-float-double-issue/51002/3 "2017-07-05T22:47:04Z")

</div>


