# Data disappeared but \_stats doesn't say the same

**URL:** <https://discuss.elastic.co/t/data-disappeared-but-stats-doesnt-say-the-same/212464>\
**Category:** Elasticsearch\
**Created:** [December 19, 2019, 10:02am UTC](https://discuss.elastic.co/t/data-disappeared-but-stats-doesnt-say-the-same/212464 "2019-12-19T10:02:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HugooBauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugoobauer/32/59691_2.png) [@HugooBauer](https://discuss.elastic.co/u/HugooBauer)\
**Post date:** [December 19, 2019, 10:02am UTC](https://discuss.elastic.co/t/data-disappeared-but-stats-doesnt-say-the-same/212464/1 "2019-12-19T10:02:59Z")

</div>

Hello,

I just noticed that my data before April 1 has disappeared. I have one index per month, and the indexes 2019.03 and below no longer return documents.  
When I do a \_search or \_count, the return gives me :

> ```
> {
> "count" : 0,
> "_shards" : {
> "total" : 0,
> "successful" : 0,
> "skipped" : 0,
> "failed" : 0
> }
> }
> 
> ```

While, when I do a \_stats on the same index, I have :

> ```
> "_shards" : {
> "total" : 2,
> "successful" : 2,
> "failed" : 0
> },
> "_all" : {
> "primaries" : {
> "docs" : {
> "count" : 44468116,
> "deleted" : 0
> },
> "store" : {
> "size_in_bytes" : 6048538346
> }
> 
> ```

With the \_cat/shards request, my shards seem to be well assigned

> ```
> shrink-index-2019.03 0 p STARTED 44468116 5.6gb 10.244.8.6 elasticsearch-data-1
> shrink-index-2019.03 0 r STARTED 44468116 5.6gb 10.244.4.5 elasticsearch-data-2
> 
> ```

As you can see, the indexes are managed by a lifecycle policy index, and have been shrink. But the 2019.04 index, on which data is still accessible, has also been shrink.

---

<div class="post-metadata">

**Author:** ![HugooBauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugoobauer/32/59691_2.png) [@HugooBauer](https://discuss.elastic.co/u/HugooBauer)\
**Post date:** [December 19, 2019, 3:28pm UTC](https://discuss.elastic.co/t/data-disappeared-but-stats-doesnt-say-the-same/212464/2 "2019-12-19T15:28:30Z")

</div>

Ok some news : I unfrozen the index and now it's readable. I don't get why when it's frozen, I can't read the data. Did I miss something ?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [December 19, 2019, 4:19pm UTC](https://discuss.elastic.co/t/data-disappeared-but-stats-doesnt-say-the-same/212464/3 "2019-12-19T16:19:24Z")

</div>

Did you pass [the `?ignore_throttled=false` parameter](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/searching_a_frozen_index.html) to your search?

By default frozen indices are not searched since they are much slower to search than non-frozen indices.

---

<div class="post-metadata">

**Author:** ![HugooBauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugoobauer/32/59691_2.png) [@HugooBauer](https://discuss.elastic.co/u/HugooBauer)\
**Post date:** [December 20, 2019, 9:08am UTC](https://discuss.elastic.co/t/data-disappeared-but-stats-doesnt-say-the-same/212464/4 "2019-12-20T09:08:45Z")

</div>

Thank you ! I misinterpreted the documentation ...

---

<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:** [January 17, 2020, 9:08am UTC](https://discuss.elastic.co/t/data-disappeared-but-stats-doesnt-say-the-same/212464/5 "2020-01-17T09:08:50Z")

</div>

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