# Use CURL to create mapping suspend

**URL:** <https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213>\
**Category:** Elasticsearch\
**Created:** [October 17, 2017, 9:20am UTC](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213 "2017-10-17T09:20:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 17, 2017, 9:38am UTC](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213/2 "2017-10-17T09:38:45Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

I edited your question.

I tried to ran it locally and it did not hang but failed:

```auto
DELETE test
PUT test
{
  "settings": {
    "number_of_shards": 5,
    "number_of_replicas": 0,
    "analysis": {
      "analyzer": {
        "default": {
          "type": "custom",
          "tokenizer": "ik_max_word",
          "filter": [
            "stemmer"
          ]
        }
      }
    }
  },
  "data": {
    "mappings": {
      "folder": {
        "properties": {
          "id": {
            "type": "integer",
            "store": false
          },
          "name": {
            "type": "keyword",
            "index": "analyzed",
            "similarity": "BM25",
            "analyzer": "default",
            "search_analyzer": "default",
            "store": false
          },
          "type": {
            "type": "integer",
            "index": "no",
            "store": false
          },
          "owner": {
            "type": "keyword",
            "index": "analyzed",
            "similarity": "BM25",
            "analyzer": "default",
            "search_analyzer": "default",
            "store": false
          },
          "path": {
            "type": "keyword",
            "index": "analyzed",
            "similarity": "BM25",
            "analyzer": "default",
            "search_analyzer": "default",
            "store": false
          }
        }
      }
    }
  }
}

```

Gives:

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "Custom Analyzer [default] failed to find tokenizer under name [ik_max_word]"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "Custom Analyzer [default] failed to find tokenizer under name [ik_max_word]"
  },
  "status": 400
}

```

---

_[View the full topic](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213)._
