# Include and exclude fields

**URL:** https://discuss.elastic.co/t/include-and-exclude-fields/42025
**Category:** Elasticsearch
**Created:** [February 17, 2016, 12:22pm UTC](https://discuss.elastic.co/t/include-and-exclude-fields/42025 "2016-02-17T12:22:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lucifer](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@lucifer](https://discuss.elastic.co/u/lucifer)
#### Post date: [February 17, 2016, 12:22pm UTC](https://discuss.elastic.co/t/include-and-exclude-fields/42025/1 "2016-02-17T12:22:35Z")

</div>

One main thing is not clear in the documentation. When I specify the include and the exclude fields in \_source field of the elasticsearch, are the excluded fields not stored or not displayed in the result?

Because if it is stored but not displayed, we can change it afterwards. But if it is not even stored, we can't change that. Kindly let me know.

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [February 17, 2016, 1:19pm UTC](https://discuss.elastic.co/t/include-and-exclude-fields/42025/2 "2016-02-17T13:19:26Z")

</div>

> [@lucifer](#):
>
> When I specify the include and the exclude fields in \_source field of the elasticsearch

Would you mind linking to the documentation of the feature you want to use? If you mean [\_source filtering](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-source-filtering.html) then it is a "stored by not displayed" thing that you can use as part of a search.

---

<div class="post-metadata">

### Author: ![lucifer](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@lucifer](https://discuss.elastic.co/u/lucifer)
#### Post date: [February 17, 2016, 1:39pm UTC](https://discuss.elastic.co/t/include-and-exclude-fields/42025/3 "2016-02-17T13:39:31Z")

</div>

Two questions:

1. What is the difference between "\_source":"false" and "\_source" { "enabled" : "false" } Is it the same?

2. If my \_source is enabled, but I exclude certain fields from getting displayed in the result, will those fields still be stored?

---

<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 5, 2017, 11:15pm UTC](https://discuss.elastic.co/t/include-and-exclude-fields/42025/4 "2017-07-05T23:15:43Z")

</div>


