# Search returning zero document and zero shards | Index was closed and then opened

**URL:** <https://discuss.elastic.co/t/search-returning-zero-document-and-zero-shards-index-was-closed-and-then-opened/324603>\
**Category:** Elasticsearch\
**Created:** [February 3, 2023, 6:42am UTC](https://discuss.elastic.co/t/search-returning-zero-document-and-zero-shards-index-was-closed-and-then-opened/324603 "2023-02-03T06:42:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![esuser27](https://avatars.discourse-cdn.com/v4/letter/e/a587f6/32.png) [@esuser27](https://discuss.elastic.co/u/esuser27)\
**Post date:** [February 3, 2023, 6:42am UTC](https://discuss.elastic.co/t/search-returning-zero-document-and-zero-shards-index-was-closed-and-then-opened/324603/1 "2023-02-03T06:42:05Z")

</div>

Hi Folks,

I had closed few of my indices for maintenance activity and I opened them after some time.

Health wise the index is green and has a shard, but my search query is getting empty results even though there are documents in the index.

Please suggest how I can repair such index.

Thanks in Advance.

```auto
green open my-index-000001 WrMLNUdTQ_-imTd6r6oueA 1 0 8072 0 1.6mb 1.6m

```

```auto
curl -X GET "localhost:9200/my-index-000001/_search?pretty"

{
  "took" : 0,
  "timed_out" : false,
  "_shards" : {
    "total" : 0,
    "successful" : 0,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 0,
      "relation" : "eq"
    },
    "max_score" : 0.0,
    "hits" : []
  }
}

```

---

<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:** [March 3, 2023, 6:42am UTC](https://discuss.elastic.co/t/search-returning-zero-document-and-zero-shards-index-was-closed-and-then-opened/324603/2 "2023-03-03T06:42:19Z")

</div>

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