# Mapper Parsing Exception: Root mapping definition has unsupported paramenters

**URL:** <https://discuss.elastic.co/t/mapper-parsing-exception-root-mapping-definition-has-unsupported-paramenters/55809>\
**Category:** Elasticsearch\
**Created:** [July 18, 2016, 9:19pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-root-mapping-definition-has-unsupported-paramenters/55809 "2016-07-18T21:19:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amjustin](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Amjustin](https://discuss.elastic.co/u/Amjustin)\
**Post date:** [July 18, 2016, 9:19pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-root-mapping-definition-has-unsupported-paramenters/55809/1 "2016-07-18T21:19:07Z")

</div>

Hello,

I am having trouble using the Mapper attachment with ES. I am trying to use the mapper attachment to create a mapping corresponding to the MongoDB collection where my GridFS files are. I am using the mongo-connector to connect ES and Mongodb.  
My problem is that I am trying trying to use the Gridfs support through following this small tutorial:[https://github.com/mongodb-labs/mongo-connector/wiki/Usage%20with%20ElasticSearch](https://github.com/mongodb-labs/mongo-connector/wiki/Usage%20with%20ElasticSearch)

This is the mapping that I am trying to create:

curl -XPUT --noproxy '\*' [http://localhost:9201/project\_fs/collection.fs/\_mapping](http://localhost:9201/project_fs/collection.fs/_mapping) -d ' {  
"fs": {  
"properties": {  
"content\_type": {"type": "attachment"}  
}}}'

This is the error that it is creating:

{"error":{"root\_cause":[{"type":"mapper\_parsing\_exception","reason":"Root mapping definition has unsupported parameters: [fs : {properties={content\_type {type=attachment}}}]"}],"type":"mapper\_parsing\_exception","reason":"Root mapping definition has unsupported parameters: [fs : {properties={content\_type={type=attachment}}}]"},"status":400}

I am using ES 2.1.2 and the mapper-attachment (3.1.2) plugin is installed .

Thanks,  
AJ

---

<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:** [July 19, 2016, 8:13am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-root-mapping-definition-has-unsupported-paramenters/55809/2 "2016-07-19T08:13:19Z")

</div>

Please format your code using `</>` icon. It will make your post more readable.

I did not check in details but here is a first thought:

You are sending a mapping to `http://localhost:9201/project_fs/collection.fs/_mapping` which means:

- index: `project_fs`
- type: `collection.fs`

The mapping you sent refers to:

```auto
{
"fs": {
  "properties": {
     "content_type": {"type": "attachment"}
}}}

```

type is `fs`

So it's not consistent.

Finally, read this doc: [https://www.elastic.co/guide/en/elasticsearch/reference/2.3/indices-put-mapping.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.3/indices-put-mapping.html)

---

<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:** [July 5, 2017, 10:34pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-root-mapping-definition-has-unsupported-paramenters/55809/3 "2017-07-05T22:34:29Z")

</div>


