# Query related to store attribute for properties in mapping

**URL:** https://discuss.elastic.co/t/query-related-to-store-attribute-for-properties-in-mapping/142228
**Category:** Elasticsearch
**Created:** [July 30, 2018, 5:30pm UTC](https://discuss.elastic.co/t/query-related-to-store-attribute-for-properties-in-mapping/142228 "2018-07-30T17:30:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![prashu1910](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashu1910/32/33866_2.png) [@prashu1910](https://discuss.elastic.co/u/prashu1910)
#### Post date: [July 30, 2018, 5:30pm UTC](https://discuss.elastic.co/t/query-related-to-store-attribute-for-properties-in-mapping/142228/1 "2018-07-30T17:30:09Z")

</div>

As documentation suggests here

[https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-store.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-store.html)

If document have some fields which have less data compared to others like content field and if we want to retrieve only those fields, then we can use store. By setting store to true for those fields, we can get these data without extracting it from source. I tried to use this and I observe that size of index increases compared to index which has mapping without store attribute. So if it will increases the size then in what kind of scenarios, we can use it. Does it reduce the total response time of query? Can we index the content of file without saving it in document?

---

<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: [August 27, 2018, 5:30pm UTC](https://discuss.elastic.co/t/query-related-to-store-attribute-for-properties-in-mapping/142228/2 "2018-08-27T17:30:16Z")

</div>

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