# Elasticsearch 7.0, unknown setting \[index.mapping.single\_type\]

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-0-unknown-setting-index-mapping-single-type/179699>\
**Category:** Elasticsearch\
**Created:** [May 6, 2019, 3:51am UTC](https://discuss.elastic.co/t/elasticsearch-7-0-unknown-setting-index-mapping-single-type/179699 "2019-05-06T03:51:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lin\_Zhu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lin_zhu/32/42206_2.png) [@Lin\_Zhu](https://discuss.elastic.co/u/Lin_Zhu)\
**Post date:** [May 6, 2019, 3:51am UTC](https://discuss.elastic.co/t/elasticsearch-7-0-unknown-setting-index-mapping-single-type/179699/1 "2019-05-06T03:51:10Z")

</div>

I installed ES 7.0 recently, but I find that it's different from old versions. I tried official tutorials, but failed, I don't know why.

**This is official tutorial link:**  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html#](https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html#)

**This is my code:**  
PUT test  
{  
"settings": {  
"analysis": {  
"filter": {  
"synonym\_filter":{  
"type":"synonym",  
"synonyms\_path":"yxws\_synonyms.txt",  
"ignore\_case":"True"  
}  
}  
}  
,"similarity":{  
"qa\_bm25":{  
"type":"BM25",  
"b":"0.75",  
"k1":"1.2"  
}  
},  
"index.mapping.single\_type": true  
}  
, "mappings": {  
"qa":{  
"properties":{  
"id":{"type":"integer"},  
"department":{"type":"text"},  
"disease":{"type":"text"},  
"question":{"type":"text","similarity":"qa\_bm25"},  
"wordsDict":{"type":"text"},  
"answer":{"type":"text"}  
}  
}  
}  
}

**This is errors:**

> {  
> "error": {  
> "root\_cause": [  
> {  
> "type": "illegal\_argument\_exception",  
> "reason": "unknown setting [index.mapping.single\_type] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"  
> }  
> ],  
> "type": "illegal\_argument\_exception",  
> "reason": "unknown setting [index.mapping.single\_type] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"  
> },  
> "status": 400  
> }

---

<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:** [May 6, 2019, 5:08am UTC](https://discuss.elastic.co/t/elasticsearch-7-0-unknown-setting-index-mapping-single-type/179699/2 "2019-05-06T05:08:42Z")

</div>

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

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.  
Please update your post.

Here remove

```
"index.mapping.single_type": true

```

And the type name

```
"qa":{
```

---

<div class="post-metadata">

**Author:** ![Lin\_Zhu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lin_zhu/32/42206_2.png) [@Lin\_Zhu](https://discuss.elastic.co/u/Lin_Zhu)\
**Post date:** [May 6, 2019, 5:17am UTC](https://discuss.elastic.co/t/elasticsearch-7-0-unknown-setting-index-mapping-single-type/179699/3 "2019-05-06T05:17:18Z")

</div>

Okay! I'm sorry because I'm a newer, I will pay more attention to my post format. I have debugged it just now, thank you all the same sincerely:-)

---

<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:** [June 3, 2019, 5:17am UTC](https://discuss.elastic.co/t/elasticsearch-7-0-unknown-setting-index-mapping-single-type/179699/4 "2019-06-03T05:17:29Z")

</div>

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