# \[\_source\] has unsupported parameters

**URL:** <https://discuss.elastic.co/t/-source-has-unsupported-parameters/43666>\
**Category:** Elasticsearch\
**Created:** [March 7, 2016, 3:13pm UTC](https://discuss.elastic.co/t/-source-has-unsupported-parameters/43666 "2016-03-07T15:13:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![someone235](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/someone235/32/8330_2.png) [@someone235](https://discuss.elastic.co/u/someone235)\
**Post date:** [March 7, 2016, 3:13pm UTC](https://discuss.elastic.co/t/-source-has-unsupported-parameters/43666/1 "2016-03-07T15:13:42Z")

</div>

Hi,  
I'm getting mapper\_parsing\_exception: "Failed to parse mapping [_default_]: Mapping definition for [\_source] has unsupported parameters: [compress : true]". I don't even have \_source in my mapping. Does someone knows how to fix this?

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [March 8, 2016, 10:07am UTC](https://discuss.elastic.co/t/-source-has-unsupported-parameters/43666/2 "2016-03-08T10:07:25Z")

</div>

We would need more information... What is the operation that triggers this error? Are you using templates by any chance?

---

<div class="post-metadata">

**Author:** ![xiaom\_zhong](https://avatars.discourse-cdn.com/v4/letter/x/82dd89/32.png) [@xiaom\_zhong](https://discuss.elastic.co/u/xiaom_zhong)\
**Post date:** [August 5, 2016, 4:29am UTC](https://discuss.elastic.co/t/-source-has-unsupported-parameters/43666/3 "2016-08-05T04:29:36Z")

</div>

I also get the same problem.  
I use this template:  
{  
"template": "\*",  
"mappings": {  
"_default_": {  
"\_all": {"enabled": false},  
"\_source": {"compress": true},  
"date\_detection": false  
]  
}  
}  
}  
Then I post bulk:  
POST /\_bulk  
{"create": { "\_index": "test", "\_type": "test"}}  
{"host": "[test.com](http://test.com)", "svc": "test\_service", "ppt\_id": 1000, "ply\_id": 1000, "ctg": "inbound", "dtl": "{"name":"test"}", "time": "2016-08-04T11:48:38", "lv": "debug", "u\_id": 1000, "lgn": "test", "session\_id": "session"}  
Then I get the same problem.  
The version is: elasticsearch-2.3.3-1.noarch.  
Thank you!

---

<div class="post-metadata">

**Author:** ![mover](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mover](https://discuss.elastic.co/u/mover)\
**Post date:** [October 16, 2016, 2:21pm UTC](https://discuss.elastic.co/t/-source-has-unsupported-parameters/43666/4 "2016-10-16T14:21:31Z")

</div>

just as the error message said: the current version of elasticsearch does not support property "compress" for meta-data field "\_source". if you remove this property definition, this error should alse be removed .

---

<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:11pm UTC](https://discuss.elastic.co/t/-source-has-unsupported-parameters/43666/5 "2017-07-05T22:11:55Z")

</div>


