# Snapshot & Restore failing while restoring indices from ES 1.6.1 to ES 2.1.2

**URL:** https://discuss.elastic.co/t/snapshot-restore-failing-while-restoring-indices-from-es-1-6-1-to-es-2-1-2/49197
**Category:** Elasticsearch
**Created:** [May 4, 2016, 3:38pm UTC](https://discuss.elastic.co/t/snapshot-restore-failing-while-restoring-indices-from-es-1-6-1-to-es-2-1-2/49197 "2016-05-04T15:38:09Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![ayushsangani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayushsangani/32/9612_2.png) [@ayushsangani](https://discuss.elastic.co/u/ayushsangani)
#### Post date: [May 4, 2016, 4:33pm UTC](https://discuss.elastic.co/t/snapshot-restore-failing-while-restoring-indices-from-es-1-6-1-to-es-2-1-2/49197/3 "2016-05-04T16:33:11Z")

</div>

Thanks for the reply @dadoonet  
I have filed an issue: [https://github.com/elastic/elasticsearch-migration/issues/56](https://github.com/elastic/elasticsearch-migration/issues/56)  
But it still doesn't seem to solve the problem, even though I create a mapping for `.percolator` type without `_id` field on ES 1.6.1; elasticsearch creates one.  
For example:  
My `.percolator` mapping

```auto
{ 
    ".percolator" : {
    "_routing" : {
      "required" : true
    },
    "_timestamp" : {
      "enabled" : true
    },
	"properties" : {
			"percolator_id" : { "type" : "string", "index" : "not_analyzed", "include_in_all" : false },
			"oid" : { "type" : "integer" },
			"user_id" : { "type" : "integer" },

			"query" : { "type" : "object", "enabled" : false }
		}
	}
}

```

ES 1.6.1 creates a mapping with:

```auto
{
  "stage-index-1": {
    "mappings": {
      ".percolator": {
        "_id": {
          "index": "not_analyzed"
        },
        "_routing": {
          "required": true
        },
        "_timestamp": {
          "enabled": true
        },
        "properties": {
          "oid": {
            "type": "integer",
            "doc_values": true
          },
          "percolator_id": {
            "type": "string",
            "index": "not_analyzed",
            "include_in_all": false
          },
          "query": {
            "type": "object",
            "enabled": false
          },
          "user_id": {
            "type": "integer"
          }
        }
      }
    }
  }
}

```

Note the `_id` being created in the mapping.  
So my guess is because `_id` is created by default for `.percolator` documents in earlier versions it is preventing me to restore snapshot to ES 2.1.2 version.

Please let me know if there is any workaround.

---

_[View the full topic](https://discuss.elastic.co/t/snapshot-restore-failing-while-restoring-indices-from-es-1-6-1-to-es-2-1-2/49197)._
