# Shrinking index and now the data is missing

**URL:** <https://discuss.elastic.co/t/shrinking-index-and-now-the-data-is-missing/64141>\
**Category:** Elasticsearch\
**Created:** [October 27, 2016, 12:19pm UTC](https://discuss.elastic.co/t/shrinking-index-and-now-the-data-is-missing/64141 "2016-10-27T12:19:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![codenaked](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/codenaked/32/12752_2.png) [@codenaked](https://discuss.elastic.co/u/codenaked)\
**Post date:** [October 27, 2016, 12:19pm UTC](https://discuss.elastic.co/t/shrinking-index-and-now-the-data-is-missing/64141/1 "2016-10-27T12:19:10Z")

</div>

My cluster ID is "442f1b". I was trying to shrink some of my indices from 4 shards to 1 shard. I followed the steps outlined here:

[https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shrink-index.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shrink-index.html)

Everything seemed to shrink ok and the next index was created, so I deleted the old index. This was for 2 days out of several days worth of indices, where I was going to shrink the others once I knew it was safely working.

Now when I query the data in that range that I shrunk using Kibana's discover tab, I don't get any results. I'm not sure what I'm doing wrong. Any ideas?

---

<div class="post-metadata">

**Author:** ![codenaked](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/codenaked/32/12752_2.png) [@codenaked](https://discuss.elastic.co/u/codenaked)\
**Post date:** [October 27, 2016, 1:53pm UTC](https://discuss.elastic.co/t/shrinking-index-and-now-the-data-is-missing/64141/2 "2016-10-27T13:53:53Z")

</div>

Best I can tell, the mapping is not the same with the new index. For example, the original index had:

```
      "Timestamp": {
        "type": "date",
        "format": "strict_date_optional_time||epoch_millis"
      }

```

The new index has:

```
     "Timestamp": {
        "type": "date"
      }

```

Also, all the string types were converted to text. Any idea how to proceed?

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [October 27, 2016, 2:26pm UTC](https://discuss.elastic.co/t/shrinking-index-and-now-the-data-is-missing/64141/3 "2016-10-27T14:26:12Z")

</div>

Hi Tom,

I'm going to move this to the core elasticsearch forum, since it seems like this is an issue with elasticsearch itself and not cloud, so you should get better support there. Do of course create a cloud issue if it turns out to be cloud related

Alex

---

<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:** [October 30, 2016, 2:26pm UTC](https://discuss.elastic.co/t/shrinking-index-and-now-the-data-is-missing/64141/4 "2016-10-30T14:26:22Z")

</div>

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