# Getting all fields with setting "stored": "true"

**URL:** <https://discuss.elastic.co/t/getting-all-fields-with-setting-stored-true/14799>\
**Category:** Elasticsearch\
**Created:** [December 10, 2013, 8:24pm UTC](https://discuss.elastic.co/t/getting-all-fields-with-setting-stored-true/14799 "2013-12-10T20:24:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Uang](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@Justin\_Uang](https://discuss.elastic.co/u/Justin_Uang)\
**Post date:** [December 10, 2013, 8:24pm UTC](https://discuss.elastic.co/t/getting-all-fields-with-setting-stored-true/14799/1 "2013-12-10T20:24:22Z")

</div>

Hi,

I noticed that there is a way to get all "stored" fields at once without  
specifying them - addField("\*") to the query

However, this only works on "stored" fields. Is there a way to get all the  
fields without making every field stored?

Thanks,

Justin

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5f03c49c-80c4-4663-b533-44575464111d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5f03c49c-80c4-4663-b533-44575464111d%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![johtani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johtani/32/44956_2.png) [@johtani](https://discuss.elastic.co/u/johtani)\
**Post date:** [December 13, 2013, 10:48am UTC](https://discuss.elastic.co/t/getting-all-fields-with-setting-stored-true/14799/2 "2013-12-13T10:48:45Z")

</div>

Hi Justin,

If you use Java API and default setting (using \_source field), you should  
use getSource().

Does it make sense?

## Regards,

Jun Ohtani

2013/12/11 Justin Uang [justin.uang@gmail.com](mailto:justin.uang@gmail.com)

> Hi,
> 
> I noticed that there is a way to get all "stored" fields at once without  
> specifying them - addField("\*") to the query
> 
> However, this only works on "stored" fields. Is there a way to get all the  
> fields without making every field stored?
> 
> Thanks,
> 
> Justin
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/5f03c49c-80c4-4663-b533-44575464111d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5f03c49c-80c4-4663-b533-44575464111d%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

## --

Jun Ohtani  
blog : [http://blog.johtani.info](http://blog.johtani.info)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPW8A5x9WVf8v3NY9G7tpRpL\_kSSdHvhDw4uDnhJ1oaDMpU14A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPW8A5x9WVf8v3NY9G7tpRpL_kSSdHvhDw4uDnhJ1oaDMpU14A%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:01am UTC](https://discuss.elastic.co/t/getting-all-fields-with-setting-stored-true/14799/3 "2017-07-06T02:01:27Z")

</div>


