# How to hide some fields in \_source

**URL:** https://discuss.elastic.co/t/how-to-hide-some-fields-in--source/14499
**Category:** Elasticsearch
**Created:** [November 20, 2013, 5:00pm UTC](https://discuss.elastic.co/t/how-to-hide-some-fields-in--source/14499 "2013-11-20T17:00:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![akram79](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@akram79](https://discuss.elastic.co/u/akram79)
#### Post date: [November 20, 2013, 5:00pm UTC](https://discuss.elastic.co/t/how-to-hide-some-fields-in--source/14499/1 "2013-11-20T17:00:21Z")

</div>

Hi,

I have some data, which should be hidden/not displayed as part of the  
\_source.

when I set \_source : { enabled : false}, source is being returned as null.

How to make some fields are not displayed, but display \_source.

Regards,  
Akram.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 20, 2013, 5:44pm UTC](https://discuss.elastic.co/t/how-to-hide-some-fields-in--source/14499/2 "2013-11-20T17:44:24Z")

</div>

Can this could help you?

[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-fields.html#partial](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-fields.html#partial)

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 20 novembre 2013 at 18:00:24, Akram Hussain ([akram.hussain.sk@gmail.com](mailto:akram.hussain.sk@gmail.com)) a écrit:

Hi,

I have some data, which should be hidden/not displayed as part of the \_source.

when I set \_source : { enabled : false}, source is being returned as null.

How to make some fields are not displayed, but display \_source.

## Regards, Akram.

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).  
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).  
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:05am UTC](https://discuss.elastic.co/t/how-to-hide-some-fields-in--source/14499/3 "2017-07-06T02:05:52Z")

</div>


