# Mapping file and the disk space

**URL:** https://discuss.elastic.co/t/mapping-file-and-the-disk-space/185041
**Category:** Elasticsearch
**Created:** [June 10, 2019, 6:00pm UTC](https://discuss.elastic.co/t/mapping-file-and-the-disk-space/185041 "2019-06-10T18:00:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ivar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ivar/32/83691_2.png) [@ivar](https://discuss.elastic.co/u/ivar)
#### Post date: [June 10, 2019, 6:00pm UTC](https://discuss.elastic.co/t/mapping-file-and-the-disk-space/185041/1 "2019-06-10T18:00:31Z")

</div>

I have an index which has around 10 fields that are marked as  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}

now I created another index with same mappings except that I marked all the text fields as just keyword  
{  
"type": "keyword"  
}

now reindexed all the documents(500000 docs) from source to destination

and when I check the size of the index, I dont see any difference between new index and original index

I expected the new index should have less size as I removed 8 text fields ?

can someone explain this behaviour ?

---

<div class="post-metadata">

### Author: ![martinr\_ubi](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@martinr\_ubi](https://discuss.elastic.co/u/martinr_ubi)
#### Post date: [June 10, 2019, 6:40pm UTC](https://discuss.elastic.co/t/mapping-file-and-the-disk-space/185041/2 "2019-06-10T18:40:51Z")

</div>

Hi,

You also removed the ignore\_above: 256.  
Meaning its now using the default of 2147483647.

What happens if you set the ignore\_above : 256 in your new index mapping and rerun this experiment?

---

<div class="post-metadata">

### Author: ![ivar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ivar/32/83691_2.png) [@ivar](https://discuss.elastic.co/u/ivar)
#### Post date: [June 16, 2019, 2:39am UTC](https://discuss.elastic.co/t/mapping-file-and-the-disk-space/185041/3 "2019-06-16T02:39:52Z")

</div>

> [@martinr\_ubi](#):
>
> ur new index mapping and rerun this experiment?

Hi Martin

I'm sure that all my Id fields will be \< 256 characters  
and text will not be split by standard analyzer I'm using

---

<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 14, 2019, 2:40am UTC](https://discuss.elastic.co/t/mapping-file-and-the-disk-space/185041/4 "2019-07-14T02:40:03Z")

</div>

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