# Disable \_source field not working

**URL:** <https://discuss.elastic.co/t/disable--source-field-not-working/617>\
**Category:** Elasticsearch\
**Created:** [May 13, 2015, 12:45pm UTC](https://discuss.elastic.co/t/disable--source-field-not-working/617 "2015-05-13T12:45:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rycehok](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@rycehok](https://discuss.elastic.co/u/rycehok)\
**Post date:** [May 13, 2015, 12:45pm UTC](https://discuss.elastic.co/t/disable--source-field-not-working/617/1 "2015-05-13T12:45:34Z")

</div>

Hi. I tried to disable field \_source using mapping like this  
curl -XPOST localhost:9200/test1 -d '{  
"mappings" : {  
"test1" : {  
"\_source" : {  
"enabled" : false  
}  
}  
}'

When data is loaded to elasticsearch with logstash, there are only 3 fields with any text:  
\_id \_type and \_index. Other fields with data are missing.  
But when i parse my logs , there are at least 6 fields.  
Did someone has problems like this?

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [May 13, 2015, 2:41pm UTC](https://discuss.elastic.co/t/disable--source-field-not-working/617/2 "2015-05-13T14:41:21Z")

</div>

No, there is no way to get offsets for a specific term.

---

<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:14am UTC](https://discuss.elastic.co/t/disable--source-field-not-working/617/3 "2017-07-06T00:14:16Z")

</div>


