# Failed to parse mapping \[\_doc\]: Root mapping definition has unsupported parameters

**URL:** <https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492>\
**Category:** Elasticsearch\
**Created:** [April 11, 2019, 7:52pm UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492 "2019-04-11T19:52:42Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![atik\_sarker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atik_sarker/32/43975_2.png) [@atik\_sarker](https://discuss.elastic.co/u/atik_sarker)\
**Post date:** [April 11, 2019, 7:52pm UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/1 "2019-04-11T19:52:42Z")

</div>

Hi i am new in Elasticsearch,  
I am getting the following error :

```
Invalid NEST response built from a unsuccessful low level call on PUT: /idxcomparatornt
# Audit trail of this API call:
 - [1] BadResponse: Node: http://localhost:9200/ Took: 00:00:00.5697725
# OriginalException: Elasticsearch.Net.ElasticsearchClientException: The remote server returned an error: (400) Bad Request.. Call: Status code 400 from: PUT /idxcomparatornt. ServerError: Type: mapper_parsing_exception Reason: "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [Comparator : {properties={ProductFamily={type=text}, ManufacturerName={norms=true, analyzer=autocomplete, type=text, fields={keyword={normalizer=nrm_lowercase, ignore_above=255, type=keyword}}}, ProductType={type=text}, ComptEshoplink={type=text}, SearchString={norms=true, analyzer=autocomplete, type=text, fields={whitespace={norms=true, analyzer=whitespace, type=text}, plainstring={norms=true, analyzer=analyzerplanstring, type=text}, 1to50={norms=true, analyzer=autocomplete1to50, type=text}}}, Productline={type=text}, ItemNumber={norms=true, analyzer=autocomplete, type=text, fields={keyword={normalizer=nrm_lowercase, ignore_above=255, type=keyword}, whitespace={norms=true, analyzer=whitespace, type=text}, plainstring={norms=true, analyzer=analyzerplanstring, type=text}, 1to50={norms=true, analyzer=autocomplete1to50, type=text}}}, FullProductline={type=text}, ItemName={norms=true, analyzer=autocomplete, type=text, fields={keyword={normalizer=nrm_lowercase, ignore_above=255, type=keyword}, whitespace={norms=true, analyzer=whitespace, type=text}, plainstring={norms=true, analyzer=analyzerplanstring, type=text}, 1to50={norms=true, analyzer=autocomplete1to50, type=text}}}, PXC={type=nested, properties={PXCAssembledGroup={type=text}, PXCEquivalentType={type=text}, PXCComment={type=text}, CreatedBy={type=text}, PXCEquivalentID={type=text}, PhoenixEshoplink={type=text}, PXCImage={type=text}, PXCManufacturerName={analyzer=autocomplete, type=text}, PXCProductType={type=text}, PXCProductFamily={type=text}, CreatedDate={type=text}, PXCPreferredConversion={type=text}, PXCSuccessor={type=text}, PXCItemNumber={analyzer=autocomplete, type=text}, geoCountry={type=nested, properties={CountryName={type=text, fields={keyword={ignore_above=256, type=keyword}}}}}, PXCItemName={analyzer=autocomplete, type=text}}}, id={type=text, fields={keyword={ignore_above=256, type=keyword}}}, MarkingMaterialmsg={type=text}, ComptImage={type=text}, ComptComments={type=text}}}]" CausedBy: "Type: mapper_parsing_exception Reason: "Root mapping definition has unsupported parameters: [Comparator : {properties={ProductFamily={type=text}, ManufacturerName={norms=true, analyzer=autocomplete, type=text, fields={keyword={normalizer=nrm_lowercase, ignore_above=255, type=keyword}}}, ProductType={type=text}, ComptEshoplink={type=text}, SearchString={norms=true, analyzer=autocomplete, type=text, fields={whitespace={norms=true, analyzer=whitespace, type=text}, plainstring={norms=true, analyzer=analyzerplanstring, type=text}, 1to50={norms=true, analyzer=autocomplete1to50, type=text}}}, Productline={type=text}, ItemNumber={norms=true, analyzer=autocomplete, type=text, fields={keyword={normalizer=nrm_lowercase, ignore_above=255, type=keyword}, whitespace={norms=true, analyzer=whitespace, type=text}, plainstring={norms=true, analyzer=analyzerplanstring, type=text}, 1to50={norms=true, analyzer=autocomplete1to50, type=text}}}, FullProductline={type=text}, ItemName={norms=true, analyzer=autocomplete, type=text, fields={keyword={normalizer=nrm_lowercase, ignore_above=255, type=keyword}, whitespace={norms=true, analyzer=whitespace, type=text}, plainstring={norms=true, analyzer=analyzerplanstring, type=text}, 1to50={norms=true, analyzer=autocomplete1to50, type=text}}}, PXC={type=nested, properties={PXCAssembledGroup={type=text}, PXCEquivalentType={type=text}, PXCComment={type=text}, CreatedBy={type=text}, PXCEquivalentID={type=text}, PhoenixEshoplink={type=text}, PXCImage={type=text}, PXCManufacturerName={analyzer=autocomplete, type=text}, PXCProductType={type=text}, PXCProductFamily={type=text}, CreatedDate={type=text}, PXCPreferredConversion={type=text}, PXCSuccessor={type=text}, PXCItemNumber={analyzer=autocomplete, type=text}, geoCountry={type=nested, properties={CountryName={type=text, fields={keyword={ignore_above=256, type=keyword}}}}}, PXCItemName={analyzer=autocomplete, type=text}}}, id={type=text, fields={keyword={ignore_above=256, type=keyword}}}, MarkingMaterialmsg={type=text}, ComptImage={type=text}, ComptComments={type=text}}}]"" ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
   at System.Net.HttpWebRequest.GetResponse()
   at Elasticsearch.Net.HttpWebRequestConnection.Request[TResponse](RequestData requestData)
   --- End of inner exception stack trace ---

```

I am not getting the problem.

Regards  
Atiour

---

<div class="post-metadata">

**Author:** ![paryasomayajulu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paryasomayajulu/32/44009_2.png) [@paryasomayajulu](https://discuss.elastic.co/u/paryasomayajulu)\
**Post date:** [April 12, 2019, 9:46am UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/2 "2019-04-12T09:46:25Z")

</div>

I hope you are making use of Elastic search 7.0 and Nest C# lastest version. There are some breaking changes with ES 7.0 which is causing this issue.

Please go through this link for fixing it

> **[Failed to parse mapping \[\_doc\]: Root mapping definition has unsupported...](https://xyzcoder.github.io/elasticsearch/nest/2019/04/12/es-70-and-nest-mapping-error.html)**
>
> Hi, Recently I installed Elastic search 7.0 on one of my machines and I am using NEST C#(6.6.0) Client for interacting with it.

---

<div class="post-metadata">

**Author:** ![atik\_sarker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atik_sarker/32/43975_2.png) [@atik\_sarker](https://discuss.elastic.co/u/atik_sarker)\
**Post date:** [April 12, 2019, 10:31am UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/3 "2019-04-12T10:31:53Z")

</div>

Yes i am using Elastic search 7.0 and Nest C# latest version.  
Let me try your solution.

---

<div class="post-metadata">

**Author:** ![atik\_sarker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atik_sarker/32/43975_2.png) [@atik\_sarker](https://discuss.elastic.co/u/atik_sarker)\
**Post date:** [April 12, 2019, 12:02pm UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/4 "2019-04-12T12:02:40Z")

</div>

Thank you for you response, But i am not getting option for 7.1.0-ci20190412T075554.  
Can you please share me the link of old version download.

---

<div class="post-metadata">

**Author:** ![paryasomayajulu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paryasomayajulu/32/44009_2.png) [@paryasomayajulu](https://discuss.elastic.co/u/paryasomayajulu)\
**Post date:** [April 12, 2019, 12:06pm UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/5 "2019-04-12T12:06:47Z")

</div>

Did you add the Package source as mentioned over there... If so what version are you getting

---

<div class="post-metadata">

**Author:** ![atik\_sarker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atik_sarker/32/43975_2.png) [@atik\_sarker](https://discuss.elastic.co/u/atik_sarker)\
**Post date:** [April 12, 2019, 12:10pm UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/6 "2019-04-12T12:10:16Z")

</div>

Yes i added but not getting option in to version.

 ![Package%20error](https://us1.discourse-cdn.com/elastic/original/3X/a/6/a69beb59690f3123b7f2802688f41fdf8b7e3e62.png)

---

<div class="post-metadata">

**Author:** ![paryasomayajulu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paryasomayajulu/32/44009_2.png) [@paryasomayajulu](https://discuss.elastic.co/u/paryasomayajulu)\
**Post date:** [April 12, 2019, 12:16pm UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/7 "2019-04-12T12:16:30Z")

</div>

Ok you also need to change package source option in package manager screen.. did you do that

---

<div class="post-metadata">

**Author:** ![atik\_sarker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atik_sarker/32/43975_2.png) [@atik\_sarker](https://discuss.elastic.co/u/atik_sarker)\
**Post date:** [April 12, 2019, 12:21pm UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/8 "2019-04-12T12:21:31Z")

</div>

Yes I also change that.

---

<div class="post-metadata">

**Author:** ![paryasomayajulu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paryasomayajulu/32/44009_2.png) [@paryasomayajulu](https://discuss.elastic.co/u/paryasomayajulu)\
**Post date:** [April 12, 2019, 12:23pm UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/9 "2019-04-12T12:23:50Z")

</div>

Can you share me that screenshot  
and versions you are seeing... Also when defining package source just click on update

---

<div class="post-metadata">

**Author:** ![atik\_sarker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atik_sarker/32/43975_2.png) [@atik\_sarker](https://discuss.elastic.co/u/atik_sarker)\
**Post date:** [April 12, 2019, 12:26pm UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/10 "2019-04-12T12:26:20Z")

</div>

![error2](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3a97973b0dad6771b6f4ee7e2f9059a3d769f68a.png)

---

<div class="post-metadata">

**Author:** ![paryasomayajulu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paryasomayajulu/32/44009_2.png) [@paryasomayajulu](https://discuss.elastic.co/u/paryasomayajulu)\
**Post date:** [April 12, 2019, 1:47pm UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/11 "2019-04-12T13:47:12Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/a/d/ad592c5f313279adf7c9f0615589b00ed35f2840.png)  
Please checkbox Include Pre-release

---

<div class="post-metadata">

**Author:** ![atik\_sarker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atik_sarker/32/43975_2.png) [@atik\_sarker](https://discuss.elastic.co/u/atik_sarker)\
**Post date:** [April 13, 2019, 9:37am UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/12 "2019-04-13T09:37:45Z")

</div>

Thank you now i can update, but getting error:

`OriginalException: Elasticsearch.Net.ElasticsearchClientException: Request failed to execute. Call: Status code 400 from: PUT /idxcomparatornt. ServerError: Type: mapper_parsing_exception Reason: "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [Comparator : {properties={ProductFamily={type=text}, ManufacturerName={norms=true, analyzer=autocomplete, type=text, fields={keyword={normalizer=nrm_lowercase, ignore_above=255, type=keyword}}}, ProductType={type=text}, ComptEshoplink={type=text}, SearchString={norms=true, analyzer=autocomplete, type=text, fields={whitespace={norms=true, analyzer=whitespace, type=text}, plainstring={norms=true, analyzer=analyzerplanstring, type=text}, 1to50={norms=true, analyzer=autocomplete1to50, type=text}}}, Productline={type=text}, ItemNumber={norms=true, analyzer=autocomplete, type=text, fields={keyword={normalizer=nrm_lowercase, ignore_above=255, type=keyword}, whitespace={norms=true, analyzer=whitespace, type=text}, plainstring={norms=true, analyzer=analyzerplanstring, type=text}, 1to50={norms=true, analyzer=autocomplete1to50, type=text}}}, FullProductline={type=text}, ItemName={norms=true, analyzer=autocomplete, type=text, fields={keyword={normalizer=nrm_lowercase, ignore_above=255, type=keyword}, whitespace={norms=true, analyzer=whitespace, type=text}, plainstring={norms=true, analyzer=analyzerplanstring, type=text}, 1to50={norms=true, analyzer=autocomplete1to50, type=text}}}, PXC={type=nested, properties={PXCAssembledGroup={type=text}, PXCEquivalentType={type=text}, PXCComment={type=text}, CreatedBy={type=text}, PXCEquivalentID={type=text}, PhoenixEshoplink={type=text}, PXCImage={type=text}, PXCManufacturerName={analyzer=autocomplete, type=text}, PXCProductType={type=text}, PXCProductFamily={type=text}, CreatedDate={type=text}, PXCPreferredConversion={type=text}, PXCSuccessor={type=text}, PXCItemNumber={analyzer=autocomplete, type=text}, geoCountry={type=nested, properties={CountryName={type=text, fields={keyword={ignore_above=256, type=keyword}}}}}, PXCItemName={analyzer=autocomplete, type=text}}}, id={type=text, fields={keyword={ignore_above=256, type=keyword}}}, MarkingMaterialmsg={type=text}, ComptImage={type=text}, ComptComments={type=text}}}]" CausedBy: "Type: mapper_parsing_exception Reason: "Root mapping definition has unsupported parameters: [Comparator : {properties={ProductFamily={type=text}, ManufacturerName={norms=true, analyzer=autocomplete, type=text, fields={keyword={normalizer=nrm_lowercase, ignore_above=255, type=keyword}}}, ProductType={type=text}, ComptEshoplink={type=text}, SearchString={norms=true, analyzer=autocomplete, type=text, fields={whitespace={norms=true, analyzer=whitespace, type=text}, plainstring={norms=true, analyzer=analyzerplanstring, type=text}, 1to50={norms=true, analyzer=autocomplete1to50, type=text}}}, Productline={type=text}, ItemNumber={norms=true, analyzer=autocomplete, type=text, fields={keyword={normalizer=nrm_lowercase, ignore_above=255, type=keyword}, whitespace={norms=true, analyzer=whitespace, type=text}, plainstring={norms=true, analyzer=analyzerplanstring, type=text}, 1to50={norms=true, analyzer=autocomplete1to50, type=text}}}, FullProductline={type=text}, ItemName={norms=true, analyzer=autocomplete, type=text, fields={keyword={normalizer=nrm_lowercase, ignore_above=255, type=keyword}, whitespace={norms=true, analyzer=whitespace, type=text}, plainstring={norms=true, analyzer=analyzerplanstring, type=text}, 1to50={norms=true, analyzer=autocomplete1to50, type=text}}}, PXC={type=nested, properties={PXCAssembledGroup={type=text}, PXCEquivalentType={type=text}, PXCComment={type=text}, CreatedBy={type=text}, PXCEquivalentID={type=text}, PhoenixEshoplink={type=text}, PXCImage={type=text}, PXCManufacturerName={analyzer=autocomplete, type=text}, PXCProductType={type=text}, PXCProductFamily={type=text}, CreatedDate={type=text}, PXCPreferredConversion={type=text}, PXCSuccessor={type=text}, PXCItemNumber={analyzer=autocomplete, type=text}, geoCountry={type=nested, properties={CountryName={type=text, fields={keyword={ignore_above=256, type=keyword}}}}}, PXCItemName={analyzer=autocomplete, type=text}}}, id={type=text, fields={keyword={ignore_above=256, type=keyword}}}, MarkingMaterialmsg={type=text}, ComptImage={type=text}, ComptComments={type=text}}}]""`

---

<div class="post-metadata">

**Author:** ![paryasomayajulu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paryasomayajulu/32/44009_2.png) [@paryasomayajulu](https://discuss.elastic.co/u/paryasomayajulu)\
**Post date:** [April 15, 2019, 7:34am UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/13 "2019-04-15T07:34:26Z")

</div>

Could you please paste here the entire class and other inherited classes for which you are trying to create mapping

---

<div class="post-metadata">

**Author:** ![Koen\_Wellekens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/koen_wellekens/32/44327_2.png) [@Koen\_Wellekens](https://discuss.elastic.co/u/Koen_Wellekens)\
**Post date:** [April 17, 2019, 11:50am UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/14 "2019-04-17T11:50:14Z")

</div>

I'm getting the same problem. It seems that NEST translates the provided class definition into a mappings array which is incompatible with ES7 when trying to create a new index.

---

<div class="post-metadata">

**Author:** ![Fereshteh\_Rabet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fereshteh_rabet/32/45768_2.png) [@Fereshteh\_Rabet](https://discuss.elastic.co/u/Fereshteh_Rabet)\
**Post date:** [May 7, 2019, 8:07pm UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/15 "2019-05-07T20:07:02Z")

</div>

Hello,

I have the exact same problem, Do you know what's the fix?

---

<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 4, 2019, 8:15pm UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-doc-root-mapping-definition-has-unsupported-parameters/176492/16 "2019-06-04T20:15:00Z")

</div>

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