# Leaving out information from the response

**URL:** <https://discuss.elastic.co/t/leaving-out-information-from-the-response/22376>\
**Category:** Elasticsearch\
**Created:** [February 25, 2015, 8:13am UTC](https://discuss.elastic.co/t/leaving-out-information-from-the-response/22376 "2015-02-25T08:13:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_3](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@James\_3](https://discuss.elastic.co/u/James_3)\
**Post date:** [February 25, 2015, 8:13am UTC](https://discuss.elastic.co/t/leaving-out-information-from-the-response/22376/1 "2015-02-25T08:13:29Z")

</div>

Hi,

I want to have certain data in my elasticsearch index but I don't want it  
to be returned with a query. At the moment it seems to return every bit of  
data I have for each index and then I use my PHP application to hide it. Is  
it possible to select what fields elasticsearch returns in it's response to  
my PHP application.

For example for each time:

Name  
Location  
Description  
Keywords  
Unique ID  
Create date

I just want to have in the response from elasticsearch:

Name  
Location  
Description

--  
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/089c53f5-0aa4-48b5-acb4-df4d6ccfee13%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/089c53f5-0aa4-48b5-acb4-df4d6ccfee13%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![selckin](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@selckin](https://discuss.elastic.co/u/selckin)\
**Post date:** [February 25, 2015, 8:17am UTC](https://discuss.elastic.co/t/leaving-out-information-from-the-response/22376/2 "2015-02-25T08:17:14Z")

</div>

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

On Wed, Feb 25, 2015 at 9:13 AM, James [mail@employ.com](mailto:mail@employ.com) wrote:

> Hi,
> 
> I want to have certain data in my elasticsearch index but I don't want it  
> to be returned with a query. At the moment it seems to return every bit of  
> data I have for each index and then I use my PHP application to hide it. Is  
> it possible to select what fields elasticsearch returns in it's response to  
> my PHP application.
> 
> For example for each time:
> 
> Name  
> Location  
> Description  
> Keywords  
> Unique ID  
> Create date
> 
> I just want to have in the response from elasticsearch:
> 
> Name  
> Location  
> Description
> 
> --  
> 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/089c53f5-0aa4-48b5-acb4-df4d6ccfee13%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/089c53f5-0aa4-48b5-acb4-df4d6ccfee13%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/089c53f5-0aa4-48b5-acb4-df4d6ccfee13%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/089c53f5-0aa4-48b5-acb4-df4d6ccfee13%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CABY\_-Z4x%3DgOq1EbtvsLLRgQn1Ad8Zd5QzpubZaL5KA98p7J2Xw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CABY_-Z4x%3DgOq1EbtvsLLRgQn1Ad8Zd5QzpubZaL5KA98p7J2Xw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![James\_3](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@James\_3](https://discuss.elastic.co/u/James_3)\
**Post date:** [February 25, 2015, 8:18am UTC](https://discuss.elastic.co/t/leaving-out-information-from-the-response/22376/3 "2015-02-25T08:18:07Z")

</div>

Thank you

On 25 February 2015 at 08:17, Thomas Matthijs [lists@selckin.be](mailto:lists@selckin.be) wrote:

> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-fields.html)
> 
> On Wed, Feb 25, 2015 at 9:13 AM, James [mail@employ.com](mailto:mail@employ.com) wrote:
> 
> > Hi,
> > 
> > I want to have certain data in my elasticsearch index but I don't want it  
> > to be returned with a query. At the moment it seems to return every bit of  
> > data I have for each index and then I use my PHP application to hide it. Is  
> > it possible to select what fields elasticsearch returns in it's response to  
> > my PHP application.
> > 
> > For example for each time:
> > 
> > Name  
> > Location  
> > Description  
> > Keywords  
> > Unique ID  
> > Create date
> > 
> > I just want to have in the response from elasticsearch:
> > 
> > Name  
> > Location  
> > Description
> > 
> > --  
> > 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/089c53f5-0aa4-48b5-acb4-df4d6ccfee13%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/089c53f5-0aa4-48b5-acb4-df4d6ccfee13%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/089c53f5-0aa4-48b5-acb4-df4d6ccfee13%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/089c53f5-0aa4-48b5-acb4-df4d6ccfee13%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/EurLxszzenc/unsubscribe](https://groups.google.com/d/topic/elasticsearch/EurLxszzenc/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/CABY\_-Z4x%3DgOq1EbtvsLLRgQn1Ad8Zd5QzpubZaL5KA98p7J2Xw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CABY_-Z4x%3DgOq1EbtvsLLRgQn1Ad8Zd5QzpubZaL5KA98p7J2Xw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CABY\_-Z4x%3DgOq1EbtvsLLRgQn1Ad8Zd5QzpubZaL5KA98p7J2Xw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CABY_-Z4x%3DgOq1EbtvsLLRgQn1Ad8Zd5QzpubZaL5KA98p7J2Xw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAPng%3D3eNd3Gw8OdJpWPBF4tvSwWAKcuYasqCVmi7vdgYvLf0ow%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPng%3D3eNd3Gw8OdJpWPBF4tvSwWAKcuYasqCVmi7vdgYvLf0ow%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:30am UTC](https://discuss.elastic.co/t/leaving-out-information-from-the-response/22376/4 "2017-07-06T00:30:17Z")

</div>


