# Indexing error

**URL:** <https://discuss.elastic.co/t/indexing-error/3538>\
**Category:** Elasticsearch\
**Created:** [November 9, 2010, 4:07am UTC](https://discuss.elastic.co/t/indexing-error/3538 "2010-11-09T04:07:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diptamay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diptamay/32/2805_2.png) [@Diptamay](https://discuss.elastic.co/u/Diptamay)\
**Post date:** [November 9, 2010, 4:07am UTC](https://discuss.elastic.co/t/indexing-error/3538/1 "2010-11-09T04:07:36Z")

</div>

Hi Shay

I have a few documents like this, where there is quite a bit of  
nesting: [https://gist.github.com/668649](https://gist.github.com/668649)

The indexing of this document fails and error is at [https://gist.github.com/668672](https://gist.github.com/668672)

I tested against 0.12.1. Any idea what could be the problem?

Thanks  
Diptamay

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [November 9, 2010, 7:37am UTC](https://discuss.elastic.co/t/indexing-error/3538/2 "2010-11-09T07:37:57Z")

</div>

Do you have any explicit mappings defined?

On Tue, Nov 9, 2010 at 6:07 AM, diptamay [diptamay@gmail.com](mailto:diptamay@gmail.com) wrote:

> Hi Shay
> 
> I have a few documents like this, where there is quite a bit of  
> nesting: [Section · GitHub](https://gist.github.com/668649)
> 
> The indexing of this document fails and error is at  
> [Exception stacktrace · GitHub](https://gist.github.com/668672)
> 
> I tested against 0.12.1. Any idea what could be the problem?
> 
> Thanks  
> Diptamay

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [November 9, 2010, 8:27am UTC](https://discuss.elastic.co/t/indexing-error/3538/3 "2010-11-09T08:27:44Z")

</div>

hey, found the problem and pushed a fix for it:

> <https://github.com/elastic/elasticsearch/issues/494>
>
> Increasing the path buffer should be done after the index is incremented, not be…fore, since then the remove might get out of bounds.

On Tue, Nov 9, 2010 at 9:37 AM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> Do you have any explicit mappings defined?
> 
> On Tue, Nov 9, 2010 at 6:07 AM, diptamay [diptamay@gmail.com](mailto:diptamay@gmail.com) wrote:
> 
> > Hi Shay
> > 
> > I have a few documents like this, where there is quite a bit of  
> > nesting: [Section · GitHub](https://gist.github.com/668649)
> > 
> > The indexing of this document fails and error is at  
> > [Exception stacktrace · GitHub](https://gist.github.com/668672)
> > 
> > I tested against 0.12.1. Any idea what could be the problem?
> > 
> > Thanks  
> > Diptamay

---

<div class="post-metadata">

**Author:** ![Diptamay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diptamay/32/2805_2.png) [@Diptamay](https://discuss.elastic.co/u/Diptamay)\
**Post date:** [November 9, 2010, 1:19pm UTC](https://discuss.elastic.co/t/indexing-error/3538/4 "2010-11-09T13:19:55Z")

</div>

Thanks for the fix. I shall check it out.

No I did not have any explicit mappings defined.

Cheers!  
Diptamay

On Nov 9, 3:27 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> hey, found the problem and pushed a fix for it:[Parsing a deeply nested json might fail · Issue #494 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/494)
> 
> On Tue, Nov 9, 2010 at 9:37 AM, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com)wrote:
> 
> > Do you have any explicit mappings defined?
> 
> > On Tue, Nov 9, 2010 at 6:07 AM, diptamay [dipta...@gmail.com](mailto:dipta...@gmail.com) wrote:
> 
> > > Hi Shay
> 
> > > I have a few documents like this, where there is quite a bit of  
> > > nesting:[Section · GitHub](https://gist.github.com/668649)
> 
> > > The indexing of this document fails and error is at  
> > > [Exception stacktrace · GitHub](https://gist.github.com/668672)
> 
> > > I tested against 0.12.1. Any idea what could be the problem?
> 
> > > Thanks  
> > > Diptamay

---

<div class="post-metadata">

**Author:** ![Diptamay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diptamay/32/2805_2.png) [@Diptamay](https://discuss.elastic.co/u/Diptamay)\
**Post date:** [November 9, 2010, 4:11pm UTC](https://discuss.elastic.co/t/indexing-error/3538/5 "2010-11-09T16:11:37Z")

</div>

Verified that this is fixed on trunk.

-Diptamay

On Nov 9, 8:19 am, diptamay [dipta...@gmail.com](mailto:dipta...@gmail.com) wrote:

> Thanks for the fix. I shall check it out.
> 
> No I did not have any explicit mappings defined.
> 
> Cheers!  
> Diptamay
> 
> On Nov 9, 3:27 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > hey, found the problem and pushed a fix for it:[Parsing a deeply nested json might fail · Issue #494 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/494)
> 
> > On Tue, Nov 9, 2010 at 9:37 AM, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com)wrote:
> 
> > > Do you have any explicit mappings defined?
> 
> > > On Tue, Nov 9, 2010 at 6:07 AM, diptamay [dipta...@gmail.com](mailto:dipta...@gmail.com) wrote:
> 
> > > > Hi Shay
> 
> > > > I have a few documents like this, where there is quite a bit of  
> > > > nesting:[Section · GitHub](https://gist.github.com/668649)
> 
> > > > The indexing of this document fails and error is at  
> > > > [Exception stacktrace · GitHub](https://gist.github.com/668672)
> 
> > > > I tested against 0.12.1. Any idea what could be the problem?
> 
> > > > Thanks  
> > > > Diptamay

---

<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, 2017, 4:16am UTC](https://discuss.elastic.co/t/indexing-error/3538/6 "2017-07-06T04:16:53Z")

</div>


