# Disabling source

**URL:** <https://discuss.elastic.co/t/disabling-source/5318>\
**Category:** Elasticsearch\
**Created:** [September 6, 2011, 5:58pm UTC](https://discuss.elastic.co/t/disabling-source/5318 "2011-09-06T17:58:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbax007](https://avatars.discourse-cdn.com/v4/letter/c/3be4f8/32.png) [@cbax007](https://discuss.elastic.co/u/cbax007)\
**Post date:** [September 6, 2011, 5:58pm UTC](https://discuss.elastic.co/t/disabling-source/5318/1 "2011-09-06T17:58:44Z")

</div>

I recently downloaded elasticsearch 0.17.6 and was trying to set up an index where I have disabled the storage of the \_source field. I used the REST API to create a new index like so:

[http://localhost:9200/test](http://localhost:9200/test)

{  
"mappings" : {  
"person" :{  
"\_source" : {"enabled": false}  
}  
}  
}

but when I do GET requests for persons I have successfully indexed, I am still getting the \_source back. Am I missing something here?

---

<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, 3:55am UTC](https://discuss.elastic.co/t/disabling-source/5318/2 "2017-07-06T03:55:08Z")

</div>


