# Size limit on amount of data stored in a XContentBuilder value?

**URL:** <https://discuss.elastic.co/t/size-limit-on-amount-of-data-stored-in-a-xcontentbuilder-value/5173>\
**Category:** Elasticsearch\
**Created:** [August 16, 2011, 1:15pm UTC](https://discuss.elastic.co/t/size-limit-on-amount-of-data-stored-in-a-xcontentbuilder-value/5173 "2011-08-16T13:15:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kgodbole](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kgodbole](https://discuss.elastic.co/u/kgodbole)\
**Post date:** [August 16, 2011, 1:15pm UTC](https://discuss.elastic.co/t/size-limit-on-amount-of-data-stored-in-a-xcontentbuilder-value/5173/1 "2011-08-16T13:15:40Z")

</div>

Hi,

Am using following code to pump data into ES. createNodeFromEvent() iterates over name=value pairs contained in the 'event' parameter and builds the node object. When one of the field values is long (more than around 700 characters), I am not seeing the entry getting inserted into ES, neither am I seeing an error on the ES console.

XContentBuilder node = createNodeFromEvent(context, event);  
String id = ""+System.currentTimeMillis();  
client.prepareIndex(index, type, id)  
.setSource(node)  
.execute()  
.actionGet();

Is anybody aware of such a limit or has encountered a similar problem ?

Thanks,  
kgodbole

---

<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:** [August 19, 2011, 4:32am UTC](https://discuss.elastic.co/t/size-limit-on-amount-of-data-stored-in-a-xcontentbuilder-value/5173/2 "2011-08-19T04:32:28Z")

</div>

There isn't really a limit, how do you check to see if the entry is in the  
cluster?

On Tue, Aug 16, 2011 at 4:15 PM, kgodbole [kedarsgodbole@gmail.com](mailto:kedarsgodbole@gmail.com) wrote:

> Hi,
> 
> Am using following code to pump data into ES. createNodeFromEvent()  
> iterates over name=value pairs contained in the 'event' parameter and  
> builds  
> the node object. When one of the field values is long (more than around  
> 700  
> characters), I am not seeing the entry getting inserted into ES, neither am  
> I seeing an error on the ES console.
> 
> XContentBuilder node = createNodeFromEvent(context, event);  
> String id = ""+System.currentTimeMillis();  
> client.prepareIndex(index, type, id)  
> .setSource(node)  
> .execute()  
> .actionGet();
> 
> Is anybody aware of such a limit or has encountered a similar problem ?
> 
> Thanks,  
> kgodbole
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Size-limit-on-amount-of-data-stored-in-a-XContentBuilder-value-tp3258600p3258600.html](http://elasticsearch-users.115913.n3.nabble.com/Size-limit-on-amount-of-data-stored-in-a-XContentBuilder-value-tp3258600p3258600.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<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, 3:56am UTC](https://discuss.elastic.co/t/size-limit-on-amount-of-data-stored-in-a-xcontentbuilder-value/5173/3 "2017-07-06T03:56:38Z")

</div>

Closed on July 6, 2017, 3:56am UTC


