# '\_all' field for multi field data store occupying more space

**URL:** <https://discuss.elastic.co/t/-all-field-for-multi-field-data-store-occupying-more-space/39073>\
**Category:** Elasticsearch\
**Created:** [January 13, 2016, 8:06am UTC](https://discuss.elastic.co/t/-all-field-for-multi-field-data-store-occupying-more-space/39073 "2016-01-13T08:06:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anusha6](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anusha6](https://discuss.elastic.co/u/anusha6)\
**Post date:** [January 13, 2016, 8:06am UTC](https://discuss.elastic.co/t/-all-field-for-multi-field-data-store-occupying-more-space/39073/1 "2016-01-13T08:06:04Z")

</div>

Hello Team,

I am using '\_all' field to query on multiple fields data and my mappings as shown...

"mappings": {  
"ymme\_type": {  
"\_all": {  
"auto\_boost": true,  
"index\_analyzer": "wordAnalyzer",  
"search\_analyzer": "whitespace\_analyzer"  
},  
"properties": {  
"Engine": {  
"type": "string",  
"index": "not\_analyzed",  
"fields": {  
"raw": {  
"type": "string"  
}  
}  
},  
"EngineCode": {  
"type": "string",  
"include\_in\_all": false  
},  
"Make": {  
"type": "string",  
"boost": 3,  
"index": "not\_analyzed",  
"norms": {  
"enabled": true  
},  
"fields": {  
"raw": {  
"type": "string"  
}  
}  
},  
"MakeCode": {  
"type": "string",  
"include\_in\_all": false  
},  
"Model": {  
"type": "string",  
"boost": 2,  
"index": "not\_analyzed",  
"norms": {  
"enabled": true  
},  
"fields": {  
"raw": {  
"type": "string"  
}  
}  
},  
"ModelCode": {  
"type": "string",  
"include\_in\_all": false  
},  
"ShortYear": {  
"type": "string",  
"boost": 4,  
"index": "not\_analyzed",  
"norms": {  
"enabled": true  
}  
},  
"Year": {  
"type": "string",  
"boost": 5,  
"index": "not\_analyzed",  
"norms": {  
"enabled": true  
},  
"fields": {  
"raw": {  
"type": "string",  
"index": "not\_analyzed"  
}  
}  
},  
"YearCode": {  
"type": "string",  
"include\_in\_all": false  
}  
}  
}

Here when I loaded data of 34000 records occupying 25mb space,  
If I have seen the mappings without '\_all' field and loaded the same data(34000) records occupying 6mb space,  
May I know the reason?????????  
And is there any solution for my index to occupy less memory??????

---

<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:** [January 13, 2016, 10:52am UTC](https://discuss.elastic.co/t/-all-field-for-multi-field-data-store-occupying-more-space/39073/2 "2016-01-13T10:52:16Z")

</div>

What do you mean by "space" here, are you talking heap or disk, and how are you measuring it?

---

<div class="post-metadata">

**Author:** ![anusha6](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anusha6](https://discuss.elastic.co/u/anusha6)\
**Post date:** [January 13, 2016, 11:03am UTC](https://discuss.elastic.co/t/-all-field-for-multi-field-data-store-occupying-more-space/39073/3 "2016-01-13T11:03:36Z")

</div>

Hello Mark,  
In sense when we execute  
GET \_cat/indices?v

It will return store.size : value , am saying about the storage size......

---

<div class="post-metadata">

**Author:** ![anusha6](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anusha6](https://discuss.elastic.co/u/anusha6)\
**Post date:** [January 13, 2016, 11:20am UTC](https://discuss.elastic.co/t/-all-field-for-multi-field-data-store-occupying-more-space/39073/4 "2016-01-13T11:20:11Z")

</div>

Mark,  
May I know the difference between heap and disk space???

---

<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:** [January 13, 2016, 9:19pm UTC](https://discuss.elastic.co/t/-all-field-for-multi-field-data-store-occupying-more-space/39073/5 "2016-01-13T21:19:24Z")

</div>

Well `_all` is a shortcut field for searching, and it contains the analysed results of every field, so you would expect it to be larger than an index with documents that has `_all` disabled.

Heap is used for querying, aggregations. Disk is where the data is actually stored though.

---

<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, 11:24pm UTC](https://discuss.elastic.co/t/-all-field-for-multi-field-data-store-occupying-more-space/39073/6 "2017-07-05T23:24:48Z")

</div>


