# Index\_out\_of\_bounds\_exception

**URL:** <https://discuss.elastic.co/t/index-out-of-bounds-exception/306736>\
**Category:** Kibana\
**Created:** [June 8, 2022, 6:29pm UTC](https://discuss.elastic.co/t/index-out-of-bounds-exception/306736 "2022-06-08T18:29:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![magedmakled](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magedmakled/32/69937_2.png) [@magedmakled](https://discuss.elastic.co/u/magedmakled)\
**Post date:** [June 8, 2022, 6:29pm UTC](https://discuss.elastic.co/t/index-out-of-bounds-exception/306736/1 "2022-06-08T18:29:53Z")

</div>

Hello All,

I have a query that was working but all the sudden it is returning `index_out_of_bounds_exception`. The document has a nested field `events` .

I ran this directly from Kibana Elasticsearch 6.

```auto
GET event_lists/_search
{
  "query": 
    {
        "bool": {
            "must": [
                {
                    "match": {"_id": "my_id"}
                },
                {
                    "nested": {
                        "path": "events",
                        "query": {
                            "bool": {
                                "must": [{
                                             "range": {
                                                 "events.starts_at": {
                                                     "gte": "2022-08-03",
                                                     "lte": "2022-08-06",
                                                     "time_zone": "-05:00"
                                                 }
                                             }
                                         }]
                            }
                        },
                        "inner_hits": {
                          "from": 0,
                          "size": 10
                        }
                    }
                }
                
            ]
        }
    }
}

```

---

<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 6, 2022, 6:29pm UTC](https://discuss.elastic.co/t/index-out-of-bounds-exception/306736/2 "2022-07-06T18:29:55Z")

</div>

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