# Stored fields by default

**URL:** <https://discuss.elastic.co/t/stored-fields-by-default/3164>\
**Category:** Elasticsearch\
**Created:** [July 28, 2010, 6:42pm UTC](https://discuss.elastic.co/t/stored-fields-by-default/3164 "2010-07-28T18:42:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomislav\_Poljak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomislav_poljak/32/1177_2.png) [@Tomislav\_Poljak](https://discuss.elastic.co/u/Tomislav_Poljak)\
**Post date:** [July 28, 2010, 6:42pm UTC](https://discuss.elastic.co/t/stored-fields-by-default/3164/1 "2010-07-28T18:42:29Z")

</div>

Hi,  
is there a possibility to define (for specific type) for all fields  
which will be added dynamically to be stored (when field names are not  
known in advance)?

Fields need to be stored for selective searching with 'fields' param,  
not added to \_all field which is stored, because not all users have the  
privilege to see \_all fields or \_source value.

Tomislav

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 29, 2010, 11:56am UTC](https://discuss.elastic.co/t/stored-fields-by-default/3164/2 "2010-07-29T11:56:07Z")

</div>

Hi,

No, there isn't an option to do that, and you need to explicitly define  
it. You can open a feature request for this, it should be simple. Note  
though, that if you load several fields, the search will be slower.

-shay.banon

On Wed, Jul 28, 2010 at 9:42 PM, Tomislav Poljak [tpoljak@gmail.com](mailto:tpoljak@gmail.com) wrote:

> Hi,  
> is there a possibility to define (for specific type) for all fields  
> which will be added dynamically to be stored (when field names are not  
> known in advance)?
> 
> Fields need to be stored for selective searching with 'fields' param,  
> not added to \_all field which is stored, because not all users have the  
> privilege to see \_all fields or \_source value.
> 
> Tomislav

---

<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 6, 2017, 4:21am UTC](https://discuss.elastic.co/t/stored-fields-by-default/3164/3 "2017-07-06T04:21:28Z")

</div>


