title: root cause of data too large in elastic search
body: <p>I am struggling to find the exact cause of the problem :</p>
  <pre><code>&quot;type&quot;: &quot;circuit_breaking_exception&quot;,
          &quot;reason&quot;: &quot;[fielddata] Data too large, data for [_id] would be [1704048152/1.5gb], which is larger than the limit of [1704040857/1.5gb]&quot;,
          &quot;bytes_wanted&quot;: 1704048152,
          &quot;bytes_limit&quot;: 1704040857,
          &quot;durability&quot;: &quot;PERMANENT&quot;
  </code></pre>
  <p>It happened on my aws elastic search server, I thought memory might be an issue so on my local laptop I assigned -xms tp 32 mb and -xmx to 64 mb and tried inserting data in my index after around 1 00 000 records I got error :</p>
  <pre><code>circuit_breaking_exception
  &quot;reason&quot;: &quot;[parent] Data too large
  </code></pre>
  <p>I was not able to get exact same error as that I got on AWS elastic search
  I reproduce the problem I inserted more than 3500000 records but still, I am not getting that exception on my local</p>
  <p>I am new to elastic search and I want to know what changes do I need to make so that I can avoid this problem on AWS elastic search</p>
  <p>The configuration for AWS elastic search is :
  Elasticsearch version7.4
  Instance type (data)c5.xlarge.elasticsearch
  EBS volume size60 GiB
  Max clause count: 1024
  Field data cache allocation: unbounded (default)</p>
  <p>let me If more details are required</p>