# Not returning source in the response

**URL:** <https://discuss.elastic.co/t/not-returning-source-in-the-response/14954>\
**Category:** Elasticsearch\
**Created:** [December 19, 2013, 4:48pm UTC](https://discuss.elastic.co/t/not-returning-source-in-the-response/14954 "2013-12-19T16:48:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Soni](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Amit\_Soni](https://discuss.elastic.co/u/Amit_Soni)\
**Post date:** [December 19, 2013, 4:48pm UTC](https://discuss.elastic.co/t/not-returning-source-in-the-response/14954/1 "2013-12-19T16:48:54Z")

</div>

Hi everyone - This is something which might have been asked already and  
hence apology in advance (since I still couldnt find it on the web)

Can you pl let me know how I can request "source" not to be included in the  
response? I do want to store the source but is there a way I can specify  
that source should not be part of my query response?

-Amit.

--  
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/CAAOGaQ%2BdmK2rDBV4Pvv2FTD3dbaLFwxH1ac%3D9cwGfmwnH7Ri2Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAAOGaQ%2BdmK2rDBV4Pvv2FTD3dbaLFwxH1ac%3D9cwGfmwnH7Ri2Q%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:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [December 19, 2013, 5:06pm UTC](https://discuss.elastic.co/t/not-returning-source-in-the-response/14954/2 "2013-12-19T17:06:15Z")

</div>

From my experience, if you set the fields param (even if it set to an empty  
list), the source will not be returned. Makes sense since basically the  
source is just the \_source field.

> **[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.

--  
Ivan

On Thu, Dec 19, 2013 at 8:48 AM, Amit Soni [amitsoni29@gmail.com](mailto:amitsoni29@gmail.com) wrote:

> Hi everyone - This is something which might have been asked already and  
> hence apology in advance (since I still couldnt find it on the web)
> 
> Can you pl let me know how I can request "source" not to be included in  
> the response? I do want to store the source but is there a way I can  
> specify that source should not be part of my query response?
> 
> -Amit.
> 
> --  
> 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/CAAOGaQ%2BdmK2rDBV4Pvv2FTD3dbaLFwxH1ac%3D9cwGfmwnH7Ri2Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAAOGaQ%2BdmK2rDBV4Pvv2FTD3dbaLFwxH1ac%3D9cwGfmwnH7Ri2Q%40mail.gmail.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CALY%3DcQCX6g%3DogP2Uqnn%2BQ4nnT1gpyUq\_MGCL77U-h0gbaEz5Pg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCX6g%3DogP2Uqnn%2BQ4nnT1gpyUq_MGCL77U-h0gbaEz5Pg%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:** ![Amit\_Soni](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Amit\_Soni](https://discuss.elastic.co/u/Amit_Soni)\
**Post date:** [December 19, 2013, 6:12pm UTC](https://discuss.elastic.co/t/not-returning-source-in-the-response/14954/3 "2013-12-19T18:12:28Z")

</div>

Thanks much Ivan! I will give this a try.

-Amit.

On Thu, Dec 19, 2013 at 9:06 AM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> From my experience, if you set the fields param (even if it set to an  
> empty list), the source will not be returned. Makes sense since basically  
> the source is just the \_source field.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-fields.html)
> 
> --  
> Ivan
> 
> On Thu, Dec 19, 2013 at 8:48 AM, Amit Soni [amitsoni29@gmail.com](mailto:amitsoni29@gmail.com) wrote:
> 
> > Hi everyone - This is something which might have been asked already and  
> > hence apology in advance (since I still couldnt find it on the web)
> > 
> > Can you pl let me know how I can request "source" not to be included in  
> > the response? I do want to store the source but is there a way I can  
> > specify that source should not be part of my query response?
> > 
> > -Amit.
> > 
> > --  
> > 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/CAAOGaQ%2BdmK2rDBV4Pvv2FTD3dbaLFwxH1ac%3D9cwGfmwnH7Ri2Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAAOGaQ%2BdmK2rDBV4Pvv2FTD3dbaLFwxH1ac%3D9cwGfmwnH7Ri2Q%40mail.gmail.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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/CALY%3DcQCX6g%3DogP2Uqnn%2BQ4nnT1gpyUq\_MGCL77U-h0gbaEz5Pg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCX6g%3DogP2Uqnn%2BQ4nnT1gpyUq_MGCL77U-h0gbaEz5Pg%40mail.gmail.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAAOGaQKcX1%3DDKGjZnQtHHBKYkqjnKin%2BxZFKVMStwJqz%2Bvx2KA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAAOGaQKcX1%3DDKGjZnQtHHBKYkqjnKin%2BxZFKVMStwJqz%2Bvx2KA%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:00am UTC](https://discuss.elastic.co/t/not-returning-source-in-the-response/14954/4 "2017-07-06T02:00:08Z")

</div>


