# Ingest index with field limit of 2000

**URL:** <https://discuss.elastic.co/t/ingest-index-with-field-limit-of-2000/123361>\
**Category:** Elasticsearch\
**Created:** [March 9, 2018, 11:29pm UTC](https://discuss.elastic.co/t/ingest-index-with-field-limit-of-2000/123361 "2018-03-09T23:29:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradley](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@bradley](https://discuss.elastic.co/u/bradley)\
**Post date:** [March 9, 2018, 11:29pm UTC](https://discuss.elastic.co/t/ingest-index-with-field-limit-of-2000/123361/1 "2018-03-09T23:29:08Z")

</div>

When I run:

```
curl -XPUT 'localhost:9200/applicants?pretty' -H 'Content-Type: application/json' -d'
  {
    "settings":
    {
      "index.mapping.total_fields.limit": 2000,
    }
  }
  '

```

I get:

```
{
  "error" : {
    "root_cause" : [
      {
        "type" : "parse_exception",
        "reason" : "Failed to parse content to map"
      }
    ],
    "type" : "parse_exception",
    "reason" : "Failed to parse content to map",
    "caused_by" : {
      "type" : "json_parse_exception",
      "reason" : "Unexpected character ('}' (code 125)): was expecting double-quote to start field name\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@49f040ad; line: 6, column: 6]"
    }
  },
  "status" : 400
}

```

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![bradley](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@bradley](https://discuss.elastic.co/u/bradley)\
**Post date:** [March 9, 2018, 11:40pm UTC](https://discuss.elastic.co/t/ingest-index-with-field-limit-of-2000/123361/2 "2018-03-09T23:40:31Z")

</div>

I figured it out. Pretty obvious. Extra comma in there.

---

<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:** [April 6, 2018, 11:40pm UTC](https://discuss.elastic.co/t/ingest-index-with-field-limit-of-2000/123361/3 "2018-04-06T23:40:33Z")

</div>

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