# Snapshot restore doesnt restore ANALYZED

**URL:** <https://discuss.elastic.co/t/snapshot-restore-doesnt-restore-analyzed/48328>\
**Category:** Elasticsearch\
**Created:** [April 25, 2016, 1:53pm UTC](https://discuss.elastic.co/t/snapshot-restore-doesnt-restore-analyzed/48328 "2016-04-25T13:53:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mc1392](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@mc1392](https://discuss.elastic.co/u/mc1392)\
**Post date:** [April 25, 2016, 1:53pm UTC](https://discuss.elastic.co/t/snapshot-restore-doesnt-restore-analyzed/48328/1 "2016-04-25T13:53:05Z")

</div>

I recently restored a snapshot.  
I notice the flag ANALYZED is present in the restored data.

Do I really need to re-establish that the field should be NOT ANALYZED?  
Why doesn't the restore restore the data with NOT ANALYZED in tact?

---

<div class="post-metadata">

**Author:** ![pickypg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pickypg/32/62409_2.png) [@pickypg](https://discuss.elastic.co/u/pickypg)\
**Post date:** [April 25, 2016, 8:01pm UTC](https://discuss.elastic.co/t/snapshot-restore-doesnt-restore-analyzed/48328/2 "2016-04-25T20:01:57Z")

</div>

> Do I really need to re-establish that the field should be NOT ANALYZED?

No, it should come back as-is.

What version of ES was the snapshotted index created on? My suspicion is that the mapping was inconsistent before it was snapshotted and therefore you're getting back what _happened_ to be there.

---

<div class="post-metadata">

**Author:** ![mc1392](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@mc1392](https://discuss.elastic.co/u/mc1392)\
**Post date:** [April 25, 2016, 8:17pm UTC](https://discuss.elastic.co/t/snapshot-restore-doesnt-restore-analyzed/48328/3 "2016-04-25T20:17:23Z")

</div>

- Elasticsearch: 2.0.0 to 2.3.1

- Kibana: 4.0 to 4.5

- logstash: 2.0.0 to 2.3.1

Here is the mapping I used:

```auto
curl -XPOST http://localhost:9200/member_type_history -d '{
  "mappings" : {
    "Member Type" : {
      "properties" : {
        "Member Type" : {
          "type" : "string",
          "index" : "not_analyzed"
        }
      }
    }
  }
}'

```

---

<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:56pm UTC](https://discuss.elastic.co/t/snapshot-restore-doesnt-restore-analyzed/48328/4 "2017-07-05T22:56:13Z")

</div>


