# Increasing limit of total\_fields in a index?

**URL:** https://discuss.elastic.co/t/increasing-limit-of-total-fields-in-a-index/68098
**Category:** Elasticsearch
**Created:** [December 5, 2016, 7:59pm UTC](https://discuss.elastic.co/t/increasing-limit-of-total-fields-in-a-index/68098 "2016-12-05T19:59:38Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![patlola](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patlola/32/14190_2.png) [@patlola](https://discuss.elastic.co/u/patlola)
#### Post date: [December 5, 2016, 7:59pm UTC](https://discuss.elastic.co/t/increasing-limit-of-total-fields-in-a-index/68098/1 "2016-12-05T19:59:38Z")

</div>

[https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html#mapping-limit-settings](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html#mapping-limit-settings)

after setting  
index.mapping.total\_fields.limit: 2000 in elasticsearch.yml and restarting elasticsearch is not starting, it's automatically shuttingdown.

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [December 5, 2016, 8:14pm UTC](https://discuss.elastic.co/t/increasing-limit-of-total-fields-in-a-index/68098/2 "2016-12-05T20:14:31Z")

</div>

> [@patlola](#):
>
> it's automatically shuttingdown.

Is it logging anything?

---

<div class="post-metadata">

### Author: ![patlola](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patlola/32/14190_2.png) [@patlola](https://discuss.elastic.co/u/patlola)
#### Post date: [December 5, 2016, 8:14pm UTC](https://discuss.elastic.co/t/increasing-limit-of-total-fields-in-a-index/68098/3 "2016-12-05T20:14:45Z")

</div>

nope

---

<div class="post-metadata">

### Author: ![patlola](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patlola/32/14190_2.png) [@patlola](https://discuss.elastic.co/u/patlola)
#### Post date: [December 5, 2016, 8:25pm UTC](https://discuss.elastic.co/t/increasing-limit-of-total-fields-in-a-index/68098/4 "2016-12-05T20:25:02Z")

</div>

@nik9000 found the issue, thanks  
Since elasticsearch 5.x index level settings can NOT be set on the nodes  
configuration like the elasticsearch.yaml, in system properties or command line  
[arguments.In](http://arguments.In) order to upgrade all indices the settings must be updated via the  
/${index}/\_settings API. Unless all settings are dynamic all indices must be closed  
in order to apply the upgradeIndices created in the future should use index templates  
to set default values.  
so updated using api

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [December 5, 2016, 8:39pm UTC](https://discuss.elastic.co/t/increasing-limit-of-total-fields-in-a-index/68098/5 "2016-12-05T20:39:37Z")

</div>

It really should log something about that setting being invalid then....

---

<div class="post-metadata">

### Author: ![patlola](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patlola/32/14190_2.png) [@patlola](https://discuss.elastic.co/u/patlola)
#### Post date: [December 5, 2016, 10:06pm UTC](https://discuss.elastic.co/t/increasing-limit-of-total-fields-in-a-index/68098/6 "2016-12-05T22:06:04Z")

</div>

yes, it was logging.  
i wasn't checking the correct logs  
thanks for the concern 🙂

---

<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: [January 2, 2017, 10:06pm UTC](https://discuss.elastic.co/t/increasing-limit-of-total-fields-in-a-index/68098/7 "2017-01-02T22:06:06Z")

</div>

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