# Adding a field to a document where \_source.enabled is set to false

**URL:** <https://discuss.elastic.co/t/adding-a-field-to-a-document-where--source-enabled-is-set-to-false/14492>\
**Category:** Elasticsearch\
**Created:** [November 20, 2013, 12:07pm UTC](https://discuss.elastic.co/t/adding-a-field-to-a-document-where--source-enabled-is-set-to-false/14492 "2013-11-20T12:07:41Z")\
**Posts on this page:** 2\
**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, 12:07pm UTC](https://discuss.elastic.co/t/adding-a-field-to-a-document-where--source-enabled-is-set-to-false/14492/1 "2013-11-20T12:07:41Z")

</div>

Hi

We have mapping to a document as **"\_source" : {"enabled" : false }** in the template mappings.

When we tried to add a field from java api it is throwing document source missing.

Any Ideas, how to (add to /get) field from the source where **"\_source" : {"enabled" : false }** is set in the template mappings.

Regards,  
Akram.

---

<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/adding-a-field-to-a-document-where--source-enabled-is-set-to-false/14492/2 "2017-07-06T02:05:58Z")

</div>

Closed on July 6, 2017, 2:05am UTC


