# 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:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![winlans](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/winlans/32/23110_2.png) [@winlans](https://discuss.elastic.co/u/winlans)\
**Post date:** [October 17, 2017, 9:20am UTC](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213/1 "2017-10-17T09:20:21Z")

</div>

When I use curl to create mapping for index, curl will hang there, there will not be any corresponding, and will not stop operation.

* * *

elasticsearch version:5.6.3 or 5.6.2

os: ubuntu 16.04 and centos 7

This is not the case when I use version 5.3.3 ,please help me.

php script curl extension and post method . indices like is

* * *

```auto
  "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
          }
        }
      }
    }
  }
}

```

---

<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
}

```

---

<div class="post-metadata">

**Author:** ![winlans](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/winlans/32/23110_2.png) [@winlans](https://discuss.elastic.co/u/winlans)\
**Post date:** [October 17, 2017, 9:42am UTC](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213/3 "2017-10-17T09:42:45Z")

</div>

Thanks your suggest, but you don't install plugin ik,so failed.

---

<div class="post-metadata">

**Author:** ![winlans](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/winlans/32/23110_2.png) [@winlans](https://discuss.elastic.co/u/winlans)\
**Post date:** [October 17, 2017, 9:47am UTC](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213/4 "2017-10-17T09:47:37Z")

</div>

you can delete settings fields , it don't affect result.

---

<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, 10:37am UTC](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213/5 "2017-10-17T10:37:38Z")

</div>

You didn’t mention it I think.

@medcl.net can help hopefully

---

<div class="post-metadata">

**Author:** ![winlans](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/winlans/32/23110_2.png) [@winlans](https://discuss.elastic.co/u/winlans)\
**Post date:** [October 17, 2017, 10:44am UTC](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213/7 "2017-10-17T10:44:31Z")

</div>

Yeah,it’s my fault.😅....

---

<div class="post-metadata">

**Author:** ![medcl.net](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/medcl.net/32/4414_2.png) [@medcl.net](https://discuss.elastic.co/u/medcl.net)\
**Post date:** [October 17, 2017, 1:48pm UTC](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213/8 "2017-10-17T13:48:29Z")

</div>

I guess the issue was resolved.

---

<div class="post-metadata">

**Author:** ![winlans](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/winlans/32/23110_2.png) [@winlans](https://discuss.elastic.co/u/winlans)\
**Post date:** [October 17, 2017, 2:46pm UTC](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213/9 "2017-10-17T14:46:04Z")

</div>

I don’t think so,because the issue on github is my send and that there are still problems on the version 5.6.3

---

<div class="post-metadata">

**Author:** ![winlans](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/winlans/32/23110_2.png) [@winlans](https://discuss.elastic.co/u/winlans)\
**Post date:** [October 19, 2017, 1:36am UTC](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213/10 "2017-10-19T01:36:04Z")

</div>

**I said this question is a bug or I wrote a question, please give me a reply, thank you**

---

<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 19, 2017, 2:55am UTC](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213/11 "2017-10-19T02:55:20Z")

</div>

Please read

> [@About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21):
>
> The heart of the free and open Elastic Stack Elasticsearch is a distributed, RESTful search and analytics engine capable of addressing a growing number of use cases. As the heart of the Elastic Stack, it centrally stores your data for lightning fast search, fine‑tuned relevancy, and powerful analytics that scale with ease. warning PLEASE READ THIS SECTION IF IT'S YOUR FIRST POST Some useful links: [elasticsearch reference guide](http://www.elastic.co/guide/en/elasticsearch/reference/current/index.html)[elasticsearch user guide](http://www.elastic.co/guide/en/elasticsearch/guide/current/index.html)[elasticsearch plugins](https://www.elastic.co/guide/en/elasticsearch/plugins/current/index.html)[elasticsearch cl…](https://www.elastic.co/guide/en/elasticsearch/client/index.html)

Specifically the "be patient" part.

---

<div class="post-metadata">

**Author:** ![medcl.net](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/medcl.net/32/4414_2.png) [@medcl.net](https://discuss.elastic.co/u/medcl.net)\
**Post date:** [October 19, 2017, 8:02am UTC](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213/12 "2017-10-19T08:02:11Z")

</div>

@winlans can you try install this plugin again, ik plugin for es 5.6.3 was released just now.

> **[medcl/elasticsearch-analysis-ik](https://github.com/medcl/elasticsearch-analysis-ik/releases/tag/v5.6.3)**
>
> elasticsearch-analysis-ik - The IK Analysis plugin integrates Lucene IK analyzer into elasticsearch, support customized dictionary.

---

<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:** [November 16, 2017, 8:02am UTC](https://discuss.elastic.co/t/use-curl-to-create-mapping-suspend/104213/13 "2017-11-16T08:02:57Z")

</div>

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