# Elaspic mapper-size not working

**URL:** https://discuss.elastic.co/t/elaspic-mapper-size-not-working/97944
**Category:** Elasticsearch
**Created:** [August 22, 2017, 4:51pm UTC](https://discuss.elastic.co/t/elaspic-mapper-size-not-working/97944 "2017-08-22T16:51:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aliyesami](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@aliyesami](https://discuss.elastic.co/u/aliyesami)
#### Post date: [August 22, 2017, 4:51pm UTC](https://discuss.elastic.co/t/elaspic-mapper-size-not-working/97944/1 "2017-08-22T16:51:21Z")

</div>

I have installed the mapper-size plugin on all cluster nodes and rebooted the server but still I cant modify the mapping , please advise .

> [elasticsearch@hadoop1 bin]$ ./elasticsearch-plugin install mapper-size  
> -\> Downloading mapper-size from elastic  
> [=================================================] 100%  
> -\> Installed mapper-size

> [elasticsearch@hadoop2 bin]$ curl -XPUT 'hadoop5:9200/lanetxn/\_mapping/txn\_details?pretty' -d '
> 
> > {  
> > "properties":{  
> > "\_size": {  
> > "enabled": true  
> > }  
> > }  
> > }'  
> > {  
> > "error" : {  
> > "root\_cause" : [  
> > {  
> > "type" : "remote\_transport\_exception",  
> > "reason" : "[hadoop1][10.100.44.17:9300][indices:admin/mapping/put]"  
> > }  
> > ],  
> > "type" : "illegal\_argument\_exception",  
> > "reason" : "Field [\_size] is defined both as an object and a field in [txn\_details]"  
> > },  
> > "status" : 400  
> > }

---

<div class="post-metadata">

### Author: ![aliyesami](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@aliyesami](https://discuss.elastic.co/u/aliyesami)
#### Post date: [August 22, 2017, 8:50pm UTC](https://discuss.elastic.co/t/elaspic-mapper-size-not-working/97944/2 "2017-08-22T20:50:38Z")

</div>

ok this syntax did the trick

> curl -XPUT 'hadoop5:9200/lanetxn/\_mapping/txn\_details?pretty' -d '  
> {  
> "\_size": {"enabled": true}  
> }'

---

<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: [September 19, 2017, 8:50pm UTC](https://discuss.elastic.co/t/elaspic-mapper-size-not-working/97944/3 "2017-09-19T20:50:43Z")

</div>

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