# Search occasionally return empty hits

**URL:** <https://discuss.elastic.co/t/search-occasionally-return-empty-hits/153203>\
**Category:** Elasticsearch\
**Created:** [October 19, 2018, 4:47pm UTC](https://discuss.elastic.co/t/search-occasionally-return-empty-hits/153203 "2018-10-19T16:47:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![khangnguyen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khangnguyen/32/36723_2.png) [@khangnguyen](https://discuss.elastic.co/u/khangnguyen)\
**Post date:** [October 19, 2018, 4:47pm UTC](https://discuss.elastic.co/t/search-occasionally-return-empty-hits/153203/1 "2018-10-19T16:47:09Z")

</div>

I am observing a non-consistent behavior of ElasticSearch where the same query that yields data would occasionally return empty

```
{u'hits': {u'hits': [], u'total': 22724, u'max_score': 0.0}, u'_shards': {u'successful': 5, u'failed': 0, u'total': 5}, u'took': 1445, u'timed_out': False}
{u'hits': {u'hits': [], u'total': 0, u'max_score': 0.0}, u'_shards': {u'successful': 5, u'failed': 0, u'total': 5}, u'took': 388, u'timed_out': False

```

I am using v5.3 and Bulk Index to pour data into ElasticSearch.

Below is the query

```
 {
  "query": {
    "bool": {
      "must": [
        {
          "has_child": {
            "type": "ParcelOrganization",
            "filter": {
              "bool": {
                "must": [
                  {
                    "range": {
                      "imported_date": {
                        "gte": "now-14d/d"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        {
          "bool": {
            "must_not": [
              {
                "terms": {
                  "status": [
                    "delivered",
                    "pending",
                    "not_found"
                  ]
                }
              },
              {
                "exists": {
                  "field": "tt_first_attempt_business"
                }
              }
            ]
          }
        }
      ]
    }
  },
  "size": 0
}
```

---

<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:** [November 16, 2018, 4:47pm UTC](https://discuss.elastic.co/t/search-occasionally-return-empty-hits/153203/2 "2018-11-16T16:47:10Z")

</div>

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