# Returning some fields without \_source, is it possible?

**URL:** <https://discuss.elastic.co/t/returning-some-fields-without--source-is-it-possible/14707>\
**Category:** Elasticsearch\
**Created:** [December 4, 2013, 3:58pm UTC](https://discuss.elastic.co/t/returning-some-fields-without--source-is-it-possible/14707 "2013-12-04T15:58:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![project2501](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@project2501](https://discuss.elastic.co/u/project2501)\
**Post date:** [December 4, 2013, 3:58pm UTC](https://discuss.elastic.co/t/returning-some-fields-without--source-is-it-possible/14707/1 "2013-12-04T15:58:56Z")

</div>

Hi,  
I know this has been asked a bunch and I see the answer regarding fetching  
only some fields from a query.  
However, my documents have thousands of dynamic fields. I cannot define  
them in a mapping with "stored: True".  
The documents are megabytes in size. I do not want elastic search returning  
a 45MB \_source result for each  
and then pluck fields from there.

Is it possible to query and retrieve only a few fields from results? I do  
not want \_source....too big....

thanks!

--  
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/6370df09-7035-447a-a36c-b8082ee78606%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6370df09-7035-447a-a36c-b8082ee78606%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:** ![AlexC](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@AlexC](https://discuss.elastic.co/u/AlexC)\
**Post date:** [December 5, 2013, 1:51pm UTC](https://discuss.elastic.co/t/returning-some-fields-without--source-is-it-possible/14707/2 "2013-12-05T13:51:01Z")

</div>

Yes, it it possible:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

You could also use the 'fields' parameter in the URL:  
localhost:9200/index-name/type-name/id?pretty&fields=id,name

alex

On Wednesday, December 4, 2013 10:58:56 AM UTC-5, project2501 wrote:

> Hi,  
> I know this has been asked a bunch and I see the answer regarding  
> fetching only some fields from a query.  
> However, my documents have thousands of dynamic fields. I cannot define  
> them in a mapping with "stored: True".  
> The documents are megabytes in size. I do not want Elasticsearch  
> returning a 45MB \_source result for each  
> and then pluck fields from there.
> 
> Is it possible to query and retrieve only a few fields from results? I do  
> not want \_source....too big....
> 
> thanks!

--  
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/11e519ea-9f5e-47c6-8d0a-6caed246b997%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/11e519ea-9f5e-47c6-8d0a-6caed246b997%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:** ![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:03am UTC](https://discuss.elastic.co/t/returning-some-fields-without--source-is-it-possible/14707/3 "2017-07-06T02:03:06Z")

</div>


