# \[SOLVED\] - Enabling \_size

**URL:** <https://discuss.elastic.co/t/solved-enabling--size/46986>\
**Category:** Elasticsearch\
**Created:** [April 11, 2016, 12:00pm UTC](https://discuss.elastic.co/t/solved-enabling--size/46986 "2016-04-11T12:00:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikula](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikula/32/8932_2.png) [@mikula](https://discuss.elastic.co/u/mikula)\
**Post date:** [April 11, 2016, 12:00pm UTC](https://discuss.elastic.co/t/solved-enabling--size/46986/1 "2016-04-11T12:00:30Z")

</div>

Hello,  
I would like to enable \_size field on all my indexes (I know I need that data reindexed).  
But after installing mapper-size plugin and inserting new template :

```auto
{
	"template" : "logs*",
	"settings" : {
		"index.analysis.analyzer.default.type": "simple",
		"index.cache.field.type": "soft",
		"index.codec": "best_compression",
		"index.merge.policy.max_merged_segment": "20gb",
		"index.query.default_field": "message",
		"index.refresh_interval": "10s",
		"index.store.compress.stored": true,
		"index.store.compress.tv": true,
		"index.term_index_divisor": 1,
		"index.term_index_interval": 128,
		"number_of_replicas": 1,
		"number_of_shards": 5
	},
	"mappings" : {
		"_default_" : {
			"_all" : {
				"enabled" : false,
				"omit_norms" : true
			},
			"_size" : {
				"enabled" : true
			},
			"dynamic_templates" : [
				{

```

[... shortened I think this is all needed for this question]`

I am still not getting \_size field in new indexes...  
Any hint would be appreciated  
AM

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 11, 2016, 9:15pm UTC](https://discuss.elastic.co/t/solved-enabling--size/46986/2 "2016-04-11T21:15:50Z")

</div>

Take a look at [https://www.elastic.co/guide/en/elasticsearch/reference/2.3/breaking\_20\_removed\_features.html#\_literal\_\_size\_literal\_is\_now\_a\_plugin](https://www.elastic.co/guide/en/elasticsearch/reference/2.3/breaking_20_removed_features.html#_literal__size_literal_is_now_a_plugin)

---

<div class="post-metadata">

**Author:** ![mikula](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikula/32/8932_2.png) [@mikula](https://discuss.elastic.co/u/mikula)\
**Post date:** [April 12, 2016, 7:25am UTC](https://discuss.elastic.co/t/solved-enabling--size/46986/3 "2016-04-12T07:25:15Z")

</div>

Hello,  
but I did mention that "But after installing mapper-size plugin ", so this link is kind of useless for me (I have seen it before.  
So my question is again same how to get \_size field working?  
To make it clear:

- plugin is installed on all nodes
- ES version is 2.3.1
- size is enabled in my template (hope it is on right place)

But still no \_size field available (in new indexes)  
Cheers AM

PS: please don take me as a rude person, that is not my intention.

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [April 12, 2016, 11:12am UTC](https://discuss.elastic.co/t/solved-enabling--size/46986/4 "2016-04-12T11:12:17Z")

</div>

Personally I'd fiddle with it outside of the template first and then see about getting it into the template - you know, work the problem in smaller and smaller chunks and then add. Eventually you'll find something you were doing wrong or you'll end up with great bug recreation steps.

[This](https://github.com/elastic/elasticsearch/blob/2.3/plugins/mapper-size/src/test/resources/rest-api-spec/test/mapper_size/10_basic.yaml) is the way the size mapper is tested so it might be the best place to start. Like, translate that to JSON and try it locally. If that doesn't work then you've got a problem on the plugin installation end. Maybe also one about error reporting. If it does work, keep trying things that are more and more like your use case.

Sorry this isn't just working. Good luck. Please let us know what it turns out to be.

---

<div class="post-metadata">

**Author:** ![mikula](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikula/32/8932_2.png) [@mikula](https://discuss.elastic.co/u/mikula)\
**Post date:** [April 12, 2016, 12:42pm UTC](https://discuss.elastic.co/t/solved-enabling--size/46986/5 "2016-04-12T12:42:11Z")

</div>

Ok thank you for your help,  
my problem was that I didn't have \_size included in my kibana config.  
Sorry to be so stupid.  
Have nice day AM

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 12, 2016, 9:36pm UTC](https://discuss.elastic.co/t/solved-enabling--size/46986/6 "2016-04-12T21:36:02Z")

</div>

> [@mikula](#):
>
> but I did mention that "But after installing mapper-size plugin ", so this link is kind of useless for me (I have seen it before.

Sorry, misread that originally!

---

<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:59pm UTC](https://discuss.elastic.co/t/solved-enabling--size/46986/7 "2017-07-05T22:59:50Z")

</div>


