# How can I set the field limit higher then 1000?

**URL:** <https://discuss.elastic.co/t/how-can-i-set-the-field-limit-higher-then-1000/102184>\
**Category:** Elasticsearch\
**Created:** [September 28, 2017, 9:39pm UTC](https://discuss.elastic.co/t/how-can-i-set-the-field-limit-higher-then-1000/102184 "2017-09-28T21:39:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Misengo](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Misengo](https://discuss.elastic.co/u/Misengo)\
**Post date:** [September 28, 2017, 9:39pm UTC](https://discuss.elastic.co/t/how-can-i-set-the-field-limit-higher-then-1000/102184/1 "2017-09-28T21:39:21Z")

</div>

I am new to Elastic Search (visited the Elastic Event in Frankfurt today, thanks for the great talk and insights btw).

I get this error when indexing products from shopware:

```
[2017-09-28T22:58:13,583][DEBUG][o.e.a.b.TransportShardBulkAction] 
[fE76H5K] [sw_shop5_20170928225616][3] failed to execute bulk item 
(index) BulkShardRequest [[sw_shop5_20170928225616][3]] containing 
[index {[sw_shop5_20170928225616][product][A40482001], source[n/a, 
actual length: [41.6kb], max length: 2kb]}]

```

and

`Limit of total fields [1000] in index [sw_shop5_20170928233439] has been exceeded`

I generated a template to set the field limit higher:

```
curl -XGET 'localhost:9200/_template?pretty'
{
  "shopwaretemplate" : {
    "order" : 0,
    "template" : "shopwaretemplate",
    "settings" : {
      "index" : {
        "mapping" : {
          "total_fields" : {
            "limit" : "100000"
          }
        }
      }
    },
    "mappings" : { },
    "aliases" : { }
  }
}

```

but it still throws the error and I dont know how to set the 2kb higher, so I can import my data. Sorry if my terminology is not good yet.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 28, 2017, 10:47pm UTC](https://discuss.elastic.co/t/how-can-i-set-the-field-limit-higher-then-1000/102184/2 "2017-09-28T22:47:09Z")

</div>

Did you remove the index after creating the template?  
Could you check what the actual index settings are?

---

<div class="post-metadata">

**Author:** ![Misengo](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Misengo](https://discuss.elastic.co/u/Misengo)\
**Post date:** [September 29, 2017, 5:54am UTC](https://discuss.elastic.co/t/how-can-i-set-the-field-limit-higher-then-1000/102184/3 "2017-09-29T05:54:52Z")

</div>

Yes, the software does that any time I populate it (and keeps the old index). Tho I am not sure how to get the template of an index

> [http://localhost:9200/sw\_shop5\_20170928233439/\_template](http://localhost:9200/sw_shop5_20170928233439/_template)

Doesn`t do the trick.

By the way is this:

> [2017-09-29T07:57:15,683][DEBUG][o.e.a.b.TransportShardBulkAction] [fE76H5K] [sw\_shop5\_20170929075533][3] failed to execute bulk item (index) BulkShardRequest [[sw\_shop5\_20170929075533][3]] containing [index {[sw\_shop5\_20170929075533][product][A40482001], source[n/a, actual length: [41.6kb], max length: 2kb]}]

Part of the problem or annother problem/config thing?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 29, 2017, 6:18am UTC](https://discuss.elastic.co/t/how-can-i-set-the-field-limit-higher-then-1000/102184/4 "2017-09-29T06:18:29Z")

</div>

How are you ingesting data? You seem to have an index name with a very granular timestamp. Is this automatically generated?

---

<div class="post-metadata">

**Author:** ![Misengo](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Misengo](https://discuss.elastic.co/u/Misengo)\
**Post date:** [September 30, 2017, 10:34am UTC](https://discuss.elastic.co/t/how-can-i-set-the-field-limit-higher-then-1000/102184/5 "2017-09-30T10:34:29Z")

</div>

Hi Christian,  
yes, it is. Software which generates this index is Shopware - I heard from annother Dev that in case of multiple price groups and shops it will pass the 1000 fields quickly.

Question is - change the max field value (might lose performance) or change the exported data. If there is is a way anyways to extend the max fields value before indexing starts.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 1, 2017, 8:49am UTC](https://discuss.elastic.co/t/how-can-i-set-the-field-limit-higher-then-1000/102184/6 "2017-10-01T08:49:35Z")

</div>

I think [this section of the docs](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/mapping.html#mapping-limit-settings) describe what you are looking for.

---

<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:** [October 29, 2017, 8:49am UTC](https://discuss.elastic.co/t/how-can-i-set-the-field-limit-higher-then-1000/102184/7 "2017-10-29T08:49:44Z")

</div>

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